I use Dependency Service For Implements the Notitfication in Android and Ios App.
How to use Click Event for Notification in xamarin.forms?
for example when I click in Notification Open The xaml Page in PCl Project...
Below link is useful for you in that I mentioned every thing
https://forums.xamarin.com/discussion/100056/how-to-open-a-different-xaml-page-on-push-notification-click-event
Use MessagingCenter, set ContentPage type or url for MessagingCenter.Send, then MessagingCenter.Subscribe & load
https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/messaging-center/
Related
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")]
I need to make Push Notification for every user, when product's price is changed.
Just like this:
The thing is that I have a job, that runs in the background and checks all the prices and sends emails to everyone informing on changes. I want to add these desktop notifications, so javascript and html5 doesn't work for me. Is there any library for .net that implements this functionality, or does anyone know any links to tutorials that I could read and use them??
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.
Apart from this, I also want to know how to build my own service-worker web push notification system(even when web-app is not open in any tab). Currently, I am using pushpad as an alternative to this. Thanks in Advance!
You cannot customize the styles of this permission popups.
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.