Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi, i have 2 applications i want to turn into 1 app,
app 1 - is a login form . so the 2nd app is a buttonlogger ,
so the idea is to have the 2nd app (buttonlogger)open when i have entered all the details,
its for xamarin studios, or visual studios also working on android.
both apps are a xamarin.forms application

What I have tried:

google for solutions, tried to copy the buttonloggers code over into the logins final page, tried to redo the buttonlogger, tried importing the buttonlogger but dont know how to make it as the 2nd form , dont know how to open it once logged in
Posted
Updated 22-Apr-16 4:50am
Comments
Philippe Mori 21-Apr-16 12:47pm    
Make a single application!
Sinisa Hajnal 22-Apr-16 2:53am    
I would do reverse, copy login to button logger. But if you cannot for some reason, then create a known protocol / ticket / authentication object that you pass from login to your logger to confirm that the user is authenticated.

1 solution

You can pass messages between applications using Custom URL Schema.

The schema gets registered as part of the applications manifest.

E.g.

MyAppName://Message/To/Be/Passed

I've never done this with Xamarin but I have done it natively and with Cordova. It works wells.

You can also use the technique to pass messages from websites into apps.
 
Share this answer
 
Comments
jamesmc1535 25-Apr-16 3:14am    
thanks , i will try this quickly :)
jamesmc1535 25-Apr-16 3:16am    
do i need to change the schema of both of them to the same thing?
jamesmc1535 25-Apr-16 3:18am    
xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="LoginNavigation.LoginPage" Title="Login">
theres mine that i currently have.
jamesmc1535 25-Apr-16 3:19am    
the dates are that because the login form is a open source project, its got a page afterwards the login with text " main app goes here. so i want to basicly just replace that "window" with my buttonlogger app
Stephen Hewison 25-Apr-16 4:14am    
https://riccardo-moschetti.org/2014/10/03/opening-a-mobile-app-from-a-link-the-xamarin-way-url-schemas/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900