I have a website that I am displaying in an app(Android and iOS) using Xamarin Webview. My site has web push notifications. I would like to detected those push notifications and create a local push notification natively. How can I find an entry point for when the Web push notification happens?
I tried looking at the webview docs and found nothing.
Related
Can I use a WebView to receive push notifications and show them on my Android App using Xamarin, and if so, how can I do this? I've been looking and haven't found any direct way of making this happen. I'm trying to basically interface my website into a mobile app, and this appears to be the last thing necessary.
I know that the user can enable or disable push notifications in the iOS/Android settings for my application. I have tried it with my application and it works.
But my question is, would it be possible that the user could enable or disable push notifications in my application so that the user doesn't need to go to the iOS/Android settings?
I use App Center Push for Xamarin iOS and Android applications.
App Center Push
I have tried Push.SetEnabledAsync(false); to disable push notifications in my application, but it's not working. The push notifications still pop up.
Is it possible to use some code in my application to disable or enable push notifications on both Xamarin iOS and Xamarin Android?
In my mobile App, we a requirement to show the count of unread notifications in the notification area (with notification stacking) and also show the notification even when the application is closed \terminated by the user.
We decided to use data payload so that we can develop our custom event handler to show the unread notification count and implement our custom logic to show notification stacking.
This working perfectly fine for an Android mobile app. But in the case of the iOS mobile app, the incoming push notification is not 'waking up' the iOS mobile application when that application is closed \terminated by the user explicitly.
I have referred some of the solutions found online which include the settings ‘content_available =1 and\or setting priority to High but nothing is worked so far.
It would be great if anybody shares their experience\solution on this topic.
We are using firebase cloud messaging to push the notifications to the mobile app and we are using Cordova plugin on the client side.
My mobile app does not use GPS or Voice over IP (like WhatsUp which receives the special treatment from iOS) .
Does anybody have a prior working solution for this problem?
I'm trying to implement remote notification on a PLC project that supports iOS and Android platforms. I will be using a web API to handle the register and push the notification. I need help on how to set up the remote notifications.
This what I have for the iOS.
My iOS approach:
In AppDelegate implement registration to APN and get device token.
Save that token to my shared project.
For demonstration and simplicity:
3.A In one of page have a button to register the device with the token to the server using the web API.
3.B In same page, another button to send notification to that device by using the token and using web API
Handle received notification in AppDelegate
Any hints or tips on to make my appraoch better?
As for android, I don't know any approach to it since I haven't had any experience using it.
I need help on both iOS and Android approach or links to tutorials or samples. Any help will be appreciated it.
I working with Azure Notification Hub and with this tutorials my app working perfect with remote notifications.
iOS
https://learn.microsoft.com/en-us/azure/notification-hubs/xamarin-notification-hubs-ios-push-notification-apns-get-started
Android
https://learn.microsoft.com/en-us/azure/notification-hubs/xamarin-notification-hubs-push-notifications-android-gcm
We have just upgraded our existing Windows phone 8 Silverlight app to Windows phone 8.1 Silverlight project with the help from here Basically we want to use WNS to send push notification and not MPNS. We changed the notificaiton type to WNS in menifest file. We added the tile in package.menifest file.
When we are registering the app we get the app id but notification is not being received on the app. We are using Azure notification hub to send the notification using WNS. When we look at the azure notification explorer it shows the registration but the platform is still MPNS. Any help will be highly appreciated.
I can't seem to open the link, but it seems like on registration, the service is noting the request with platform MPNS. Are you using the client SDKs or using REST directly? If REST, I would make sure the platform is set correctly. You will also need to update the WNS certificate with Notification Hubs in the Azure Portal.