When running client app 5.0 on blackberry I am getting response
"Push Status: urbanAirshipRegisterPIN OK (status: 200) "during registration.
But i am not able to receive any message on my device after sending notification from UrbanAirship Dashboard.
Please suggest me the proper way to implement push notification on blackberry from both
perspectives i.e client side(Java) as well as server side(Php).
Also i want to know the is it necessary to activate BIS(Blackberry Internet Services)
services provisioned by "mobile network service provider like airtel". Thanks.
Related
How can we send message notification for ios using node js socket io while the chat app is closed?
In fact, when a simple message is sent, you will catch it with socket.io and you will send notification via push.js using it.
Push.js: https://pushjs.org/.
It is also explained in detail how it is done on the site.
But if you still want a simple one, here it is:
Push.create(data.user_name + " | Chat", {
body: data.desc,
icon: "https://pushjs.org/images/icon.png",
tag: "chat",
link: "http://localhost:8080/chat",
timeout: 5000,
onClick: function () {
window.focus();
this.close();
}
});
This can be achieved by push notification integration in iOS app.
There are many third parties available which can be integrated into the iOS app and on back end server.
FCM
APNS(Apple's native push notification service)
Pusher
One Signal, etc.
The above are the some name of the push notification services that can be integrated into app and backend server.
You need to more dig into "How to integrated push notification in iOS app with Node JS backed?" so just google it you will get the may tutorial on the internet.
Personally saying, we have integrated push in one of your iOS app with Node backed with FCM.
Fundamentally iOS supports Push Notifications via APNs (Apple Push Notification service). It’s possible to directly interface with APNs and send messages, however it can often be simpler to instead use a third party service to handle the complexity.
Ably, FCM, PubNub and Pusher are all common solutions which work well in combining an existing messaging system with Push Notifications where needed. If you’re in need of just a notification system, and have no other communication systems, a library for just notifications such as Push.js will work well.
I have two questions about APNs push notification using gcm library.
Does gcm or fcm have a public api for uploading APNs certificates? I need to do this automatically instead of manually.
It seems that sending upstream using gcm library in an iOS app, only works when app is in foreground. Is it correct? Is there any workaround to send upstream even when app is not open or is in background? I want to send notification click event using gcm upstream to my server and it is highly preferable to do it instantly.
I am aware that I can save this click event and send it when app become active, but it is possible that user does not open the app for a long time.
1. Does gcm or fcm have a public api for uploading APNs certificates?
There is currently no public API for uploading APNs Certificates. For FCM (and any new projects), it's only done via the Firebase Console. Also, it seems that making use of the APNs Authentication Keys over certificates seem more convenient now (APNs Overview).
2. It seems that sending upstream using gcm library in an iOS app, only works when app is in foreground. Is it correct?
Yes. There has to be a connection for upstream messaging to work.
Is there any workaround to send upstream even when app is not open or is in background?
AFAIK, no. As mentioned in the FCM doc (emphasis mine):
To send messages upstream to the server, an iOS client app composes a message, connects to FCM, and calls sendMessage.
To connect, set the shouldEstablishDirectChannel flag to YES in the AppDelegate. FCM manages the connection, closing it when your app goes into the background and reopening it whenever the app is foregrounded.
...
The FCM client library caches the message on the client app and sends it when the client has an active server connection. On receiving the message, the FCM connection server sends it to the app server.
It mentions that FCM manages the connection, however AFAICT, there is this limitation for iOS devices that limits apps to maintain running services if the app is in background/closed (see this answer). And if a connection can't be established, upstream messaging won't work.
As general practice, data passed through FCM should as much as possible improve the user experience and that no app critical data is passed.
I am aware that I can save this click event and send it when app become active, but it is possible that user does not open the app for a long time.
It's possible. But it's also highly unlikely for a user to not click on a push notification immediately after it displays. In that scenario, the usual action would be for the user to immediately click on the notification while there is still an open connection.
In Parse I know you can send push notification from one device to another, but since it is shutting down soon I have looked at a lot of push notification services. But I could not find one service which allows you to push to other users. i.e. Firebase, you send out notifications from the computer. Basically I need a service when a function is called in the code it goes to certain people automatically. Any service suggestions?
If you have an own server, connect it with FCM. Then create an API using PHP to receive message and forward it to another device. You may implement a system to store the FCM token of the devices in the server.
You have 2 options:
Create you own app server that will send a push notification to either APNS/GCM according to the user device type and device token id
Use push provider. I recommend you to use OneSignal because its 100% free, support in all devices and have an SDK to any client/server side technology so if you will use OneSignal you will not need any server in-between your app and the push server.
this is the onesignal home page: https://onesignal.com/
and this is the SDK docs page: https://documentation.onesignal.com/
BTW! if you want to can also continue to use parse services because they release their service as an open source which called parse-server
so you can take and deploy parse-server to any cloud platform that run NodeJS and then you can continue to work as usual
I'm using Appcelerator's cloud services to send push notifications.
I'm sending notifications from both their web admin console as well as using their REST API. 2 iOS devices successfully subscribed, and i sent them notifications, but the devices never get the notification.
All ceritificate and provisions on Apple's dashboard seems correct. all Appcelerator's cloud responses seem successful, but still the notifications never display on the devices.
Any ideas?
Thanks
Hi my team is implementing IOS MDM. We have Enterprise license. We are able to send payloads and commands to the iOS device.We are receving result from IOS Device.But while send the push notification it is not performing any thing. Even in IPCU log also no issues are showing.
We are using JavaPNS for sending push notification.Almost every thing we implemented in IOS MDM except push notification.
But when i install IOS application and sending push notification using JavaPNS it is showing push notification.
1) is it possible to send push notification for IOS MDM services ?.
2)Can we send push notifications without installing IOS application on the IOS device.
Any advice would be appreciated.
We are able to send payloads and commands to the iOS device.We are
receving result from IOS Device.
How do you send payloads and commands to iOS device? Are you sending them through MDM?
If so, the only way to let device get new commands, profiles from a server is to send "wake up" oush notification through APNS.
But while send the push notification it is not performing any thing.
That's where I got confused. In the case, if it doesn't do anything, device will never contact back a server and it will never receive commands. However, you said that it does.
But when i install IOS application and sending push notification using JavaPNS it is showing push >notification.
I believe this is your problem - confusion with terminology.
MDM protocol doesn't require any iOS application to be installed. iOS operation system has mdm agent built in. As soon as you configured MDM (installed MDM payload) and a device received "wake up" push notification (through APNS) then MDM agent will contact your server and request new commands.
On other hand, you can create some application (which has nothing to do with MDM) and send push notification to it.
The only common thing between this and MDM is push notification transport. However, the push notification message which is send for MDM purposes ("wake-up" message) and to applications ("badges", "sounds" , 'messages") are different.
Please, can you review your question and try to separate out what works and what doesn't.