I'm quite new on Node.js and without any knowledge on mobile development apps but I would add push notifications into my server app.
On npm I found this module:
https://www.npmjs.com/package/node-pushnotifications
but, after some search and if I understand well, I should have some specific credentials for sending notifications to all devices, first question is: is correct?
Assuming that the answer is yes, are there something to jump this check? Another module, some test credentials or what you want?
I would some generic solution but, if it is not possible, it could be useful also an IOS compatible solution.
This is the best packages for push notification for nodejs:
ios: https://www.npmjs.com/package/apn
android: https://www.npmjs.com/package/node-gcm
APNS is a push notification service for apple(mobile) devices.
You need to integrate SDK's provided by the 'apple developer doc' in your app to integrate push notification services. Then, Once the app installs in the mobile a token will be generated(unique for a specific device).You need to save this token.
From your server side You can send the push notifications to a device with the token that you got.
There is also an SDK to send Push notification from server side.
The best Provider is AWS, you can check this in details by this link
Related
We are currently using getStream in our react web application for notification feed. It is working fine.
We are now planning to use it in our react native mobile app as well. We would like to show a notification (in the top tray or drawer) whenever there is a notification received by a user, similar to how we get in whatsapp or telegram
Does anyone know how this can be achieved. Couldn't find anything about this in their docs. I can see that they provide this functionality with Stream Chat
PS: We are able to get the notifications in the app but we would like to show the notification in the top tray as well so that the user knows he/she has received notifications without opening the app.
Regards,
Varun
I believe your question is about offering Push Notifications for your application. Stream Feeds does not currently implement Push Notifications out of the box so you will have to implement them in your application yourself. One common approach is to use notification webhooks where you have the webhook trigger a push notification for the user from your application's back end infrastructure.
I hope that is helpful.
Best,
Grant
I want to shows push notification in my app , of which backend is done in NodeJS and mongodb, with io socket .
Every where I just see is FCM for push notification. what can be an alternative to that.
How does apps like Instagram shows push notification
To deliver push notifications to android phones, you need to use the official google api. This is firebase cloud messaging (FCM). You can send the messages from your backend to the FCM API.
For Apple devices it works similar, you can sent your messages directly to the Apple APNS API without FCM. But it is also possible to use FCM for iOS, but in reality the notifications will be delivered to the iOS devices from a apple server.
Alternative to Google's firebase fcm push notification you can try to reach out to the onesignal notification service.
check out the official docs for more information:
https://documentation.onesignal.com/docs/react-native-sdk-setup
I've set up an Azure Notification Hub and I have gone through all the steps to incorporate Push Notification into my Android app. The app has been working fine, receiving the push notifications just like it should. Then today I went to try and send a push and it failed. So I tried from the Azure Portal and it failed there too.
It seems to be only Android related though, as the devices that run my app in iOS are receiving the Push Notification like they should. I know for a fact I have not changed anything in my code. But instead of getting the Push Notification like I should I now get the following message in Azure portal.
The Push Notification System rejected the request because of an invalid credential
Does anyone have any idea why this would happen? I'm stumped.
I thought at first maybe it was something with my API key (which again I have not changed) so I checked. The Google Cloud Message API Key in the Azure Portal matches what I have in my Google API Console, so it's not that.
What could it be?
Ok, so here is how I fixed my issue:
In Google API Manager I used to only have an api key of type - Android
I created another key of type - Server, and copied that into my azure gcm config, and away she goes... notifications working again
I have registered my app with Foursquare, including registering for "User Push Api"
I have tested the checkin push using their website link "Send a test push" with successful results.
I have worked through Oauth process, and successfully get a token and can make calls with that.
Now I would alike to test the "User Push API" with the actual foursquare app. My understanding is that in order for my app to receive the pushed checkin notifications, my app has to be "Connected" with my Foursquare account.
What do I do to make this connection? I don't see my app listed in the gallery of apps to connect. Are there calls I need to make once I have the token to finalize the connection process? I understand that while this API is under development, that my app cannot appear in the main gallery. It seems that I should be able to connect my app somewhere since I am registered as developer.
Thanks,
Chris
See https://developer.foursquare.com/overview/auth for more details on how to connect with your app.
Additionally, even if your app does not appear in the app gallery, a draft version of your app details appears at https://foursquare.com/app/CLIENT_ID which you can review and will have a connect button automatically generated for you.
Has anyone worked with Salesforce mobilesdk for iOS and implemented push? Need some guidance? First of all are the services available in the SDK?
The Salesforce iOS SDK is just libraries to facilitate communications (via the REST API) and oAuth with Salesforce. For everything else you use the standard Apple libraries, so you'd use those to deal with push notifications. One thing I can recommend with regards to the Salesforce iOS stuff is to clone the git repository over using the package published on the developer blog, changes are still being made and so you need to stay up to date to avoid breakages.
Afraid I can't comment on generating push notifications on the Salesforce side, but I'd hazard a guess that you'll need to integrate with a third party or custom application via web services to achieve this.
The Salesforce Ios SDK helps in communication to salesaforce using REST APIs, to push and pull the data, rest all the things are done as normal push app does.
Mobile SDK can help in login, oAuth and to communicate with the SFDC objects. You need to implement Push Notification Services as any other iOS application does.
To post the notificaitons for any events from Salesforce you can use Urban Airship or Streaming API.
http://wiki.developerforce.com/page/Push_Notifications_for_Salesforce_Mobile_Apps_with_Urban_Airship