I implement deep linking to android part of my Xamarin forms project. But when I click the URL, initially it loads a black page with app name on the top, after a short period only it opens my app. I need to avoid this black screen. Also, the app opens in the same window, no new window is started for my app, if I click the URL from WhatsApp, the app opens in the WhatsApp window.
I need a solution for these 2 problems.
Thanks in advance.
In android manifest set android:name like below:
android:name=".MainActivity"
And in Mainactivity add Name like below:
[Activity(Name = "packagename.MainActivity")]
Related
I have a solution to dismiss the ActionSheet from iOS using the RootViewController.
But I am unable to crack this for Android as I don't see any class that can give me control on the ActionSheet.
The requirement is to close this action sheet (if it was opened) when the application goes to sleep mode. We bring up the login screen when it wakes up from sleep- but it also shows ActionSheet with the login page since it was not closed. We do not close the current page either, when app sleeps- we keep it in the background, on login we show the last active page again.
I can see in my Android phone that HERE WeGo app open links starting with share.here.com and her.is [sic].
Problem is when I open a link that starts with share.here.com on the phone it gets redirected to mobile.here.com and opens the map in the browser (her.is does not open a map at all).
Is it somehow possible to open the map in the app from a html link?
It should be possible to trigger the HERE We Go app using Intents as described in this thread : Launching a navigation app with destination pre-populated
I am developing an application with navigation drawer activity, using the default options in android studio, and then i created fragments and linked it to the navigation activity.
Now, I want to use a button in that fragment and clicking that button will have to open an activity, but I can't achieve this.
The onclicklistener, switch case ,i tried everything but none of them working when i click the button the application just stopped working
And the another problem is that, the whole application just crashes if i generate this as an apk and use it in a real device ,while this was working fine with an emulator.
Help me with this
Thanks for your time:
I just solved the issue, as being a beginner I forgot to mention my activity in the manifest file, after adding that to the manifest file its working fine now.
Just started using App Maker and I'm still getting the console displayed at the bottom of the window when I publish an app. How do I hide this please?
Do not mess Preview and Publish. By default your Preview Deployment always shows AM console(you always see Preview Deployment when you click Preview button). To open one of your published deployments you need to navigate to Settings -> Deployment and click correspondent deployemnt link. You can find some pics in this answer:
After publishing an app, how do you find the public URL to give to your end users?
Note: you can always show/hide console by toggling this URL parameter(in browser address bar):
?console=1
My app is opening a custom tab to connect to my server. My server processes user input and then returns to the app using a javascript intent and extras - the intent is set to open an activity with the needed browsable intent filter.
The browser is retaining focus. How do I get the anchor on the HTML button to correctly open the app and disappear the browser window when the user triggers the javascript Android intent with the button on the HTML page?
The behavior is not consistent. Android 4.2 can work correctly with the custom tabs while Samsung Android 6 works once and then fails when the user returns to the browser. Tabs fail in an inconsistent way on the newer versions of Android. If I disable tabs to workaround and use the system browser for Android 6, then the Android 4 system browser fails in the same way that the tabs fail. This makes me think there is some obvious gap in the html. When the javascript intent is called I see that the app getting the intent and extras -> the deep link works. The browser window, however, stays on top. Is there some trick to the HTML programming on such an intent? The user gesture is there. What else do I need? Can I leverage the callbacks and request focus?
Thanks in advance for your kind assistance.
Turns out the issue was just that the Activity opened by the javascript intent had no UI and immediately finished. For some reason, I thought that Android would stay inside my app but the backstack just did what it usually does.
The answer was to start the app's MainActivity before finishing the activity started with the javascript intent. Finishing it without intentionally coding the app to go to another activity inside the app meant that I would return to the custom tab, return to the browser. It looked as if the browser was retaining focus when in fact the javascript intent started the activity and returned to my app but the activity finished and focus returned to the custom tab that called that activity.