Hi I'm following this tutorial https://github.com/ggailey777/mobile-services-samples/tree/master/CordovaNotificationsArticle
to add iOS push notification to my Cordova project but couldn't get it to work. The APNS certificate is configured and I've uploaded the p12 file to azure mobile notification.
When I run the app it shows "Registered with Azure!" and in azure notification hub I can see the registration.
However when I send test push notification using visual studio, the message result is empty.
If I use azure portal, it shows "The test notification was sent"
And my iphone never got any notifications either when it's open or closed.
Am I missing something? Any help is much appreciated.
Thanks!
You are mixing and matching technologies. You cannot use iOS Native code in an Apache Cordova app. Based on your comments, use the cordova-push-notifications plugin. The README.md in the project describes how to add it for iOS. It's relatively simple.
You will still have to deal with how to get your device registered with Notification Hubs and getting a notification sent to your device. That is covered in detail in the Azure Notification Hubs documentation.
Related
I have built my first flutter app and would like to download it on my iphone. I have researched the topic a bit, but have failed to find a solution. I can test it when my phone is connected to my computer but cannot use it without. Thanks
I have tried debugging it using —release. I have tried to create an ipa file using terminal, but got an error since i dont have a developer account.
I have a scenario where in i am building an flutter app which i don't want to upload to google play store. I will provide the .apk to download via website .
Now i have a new version of the app which i replaced the old .apk file with in the website.
Now how to push the notification to the user and ask them to update the latest version of the app.
Should i have to maintain some github repository where i maintain the releases ?
Any suggestion to this complete scenario would be greatly helpful.
1- create an api that return latest app version
2- always make a request to this API when ever the user open the app check the API latest version and user app version (I recommend using package_info_plus)
3- inform user with the new app if app version != latest version(API)
You can user firebase or any notification service to send notification from server to the users you can schedule notification that trigger when update is added in the server
you can create the dialog that check the version of your apk and check through the server api where latest version in updated in api and you can show the dialog every time
I want to show notifications on windows using Flutter. But I'm unable to do so.
I've tried packages like deskkop_notifications and flutter_local_notifications. But none seems to work. I've tried Cloud Firestore too but it doesn't support windows.
Also, I've read online that it doesn't matter which platform you use, the project will work fine. But that doesn't seem true for me.
Reference
Is there any way to do so? If not, then is there any other way to capture the user's attention? (when the app is running)
Something like this -
(Source - Google)
Extra - I am not talking of any specific kind of notification (like push notification), any type of notification will do.
Currently push notifications on Windows desktop don‘t seem to be possible. Your reference is about flutter push notification on the web. For windows desktop there currently aren’t any packages on pub dev. If Notification is a key feature of your App. You could make a WebApp first, and wait for a package which supports Windows desktop notifications…
Edit: There is a flutter_local_notifications package which supports local notifications on Android, iOS, MacOS and Linux.
There are packages available on pub that support desktop notifications.
try M_toast package
I'm work in Ionic Push Notification App and take the reference of https://www.sitepoint.com/push-notifications-in-ionic-apps-with-google-cloud-messaging/ but in this I can't get Android Device token.
When I request from the server (https://localhost:3000/register) I'm getting 401/Undefined in server console.
Anyone help me out for this.
I tried to follow this article on MSDN magazine enter link description here to add iOS push notifications. However the sample code they provide enter link description here is outdated(using VS2013). I tried to migrate the project to VS2015 by following enter link description here but still cannot get it to work.
Can anyone provide a working sample code in VS2015? Thanks!
You need to configure the notification hub to send notifications to your iOS app.
Here is a sample how to do this in step by step walk-through:
https://azure.microsoft.com/en-us/documentation/articles/notification-hubs-ios-get-started/
Hope this helps.
I've updated the sample to Visual Studio 2015 in my fork: https://github.com/ggailey777/mobile-services-samples/tree/master/CordovaNotificationsArticle
To get it to work, I also needed to add the Whitelist plugin, which is now a requirement to access remote services from a Cordova app.
I am waiting to merge it back into the upstream fork until after I can get it tested on iOS (it does work now on Android). As mostafa points out, you do also need to follow the steps to configure push notification for iOS, which includes doing a bunch of stuff in Xcode on the Mac.