Receiving push notification with a new page - Hybrid Mobile App - android

I have developed an mobile app with push notification using IBM Worklight 6.1. I am mainly concentrating on Android and IOS. I can able to send and receive the push notification even when the app is closed. After receiving the push notification, when i am opening it, the app launching with the default page. Now my question is Is there a way to launch a particular page when opening the received push notification using hybrid way?

Yes, it is possible for you to "change page" based on the received notification.
I describe one possible implementation to do so in my answer, here: https://stackoverflow.com/a/25604731/1530814
You should review it and alter it for your needs.

Related

Stop displaying push notification for the app - Android

I have developed a chat app using Xamarin, and the app receives push notification when a new chat arrives. The push notifications are delivered through OneSignal platform which uses Firebase for Android and APNS for iOS.
I would like to unsubscribe for push notification from the device itself when a user logouts, so that even if the server sends one, it wont be displayed. I can achieve this in iOS with the following code.
UIApplication.SharedApplication.UnregisterForRemoteNotifications();
What would be the equivalent for this in Android. I have searched a lot in documentation but no luck. Appreciate some help. Even it someone can tell the code in Java or Kotlin, that would do.
In Android you must delete that instance Id to avoid receiving push notifications but also disable auto init so that it doesn't generate a new token registration:
FirebaseMessaging.Instance.AutoInitEnabled = false;
FirebaseInstanceId.Instance.DeleteInstanceId();

What was the better method to implement chatbox on mobile nowaday

I was implementing mobile game with my team. And we have argument that push system may not reliable enough. So we should find third party chat message service or open our own chat server instead of relying on silent push notification
But some still belief that using silent push to chat is the standard nowaday and more reliable than implement our own server
The requirement is just to send chat message to active user's chatbox while the app is open
Are there any concern to consider each method?
How about ios and android system setting?
Will our app receive surely recieve silent push if our app still open?
Are there any chat service that software industry used as standard
Try having a look at Firebase it has real time database and an FCM for your chat / push notification needs.

How to send push notifications to android when app is closed

I have a very simple app made with android studio, an web viewer for my forum app. I integrated push notfications to be able to send notifications like "Hi! There are some new subjects on our forum, check it out" and make people open the app. I followed the exact documentation from here https://pushbots.com/developer/docs/android-sdk-integration
I am now able to send notifications to all the users that have my application. My problem is that they dont see the notification unless they have the application opened. For example, if I test it and send a push notification, but i dont have the app opened, i wont receive anything. I want to be able to send notifications even if they have the app closed, that's my point, i want to make them open the app to see the new questions on my forum
What should i do?
Make use of what was formerly known as Google Cloud Messaging and is now known as Firebase Cloud Messaging. Can push messages to user phone even when app is closed

Push notification for my text app for iPhone and Android

I am building an android and iPhone app that involves sending text messages from within the app. The messages have to be push messages since I want them to be delivered even when the app is not running in the foreground.
I know that there are services like PushWoosh and UrbanAirship that let one push a text message (a nativet text message) to someone's phone. But, I am trying to push message to my own app (rather than the native text app). Can someone recommend me how I can implement this for my app?
You can start with Google Cloud Messaging
Here is a getting started guide.

Phonegap push notification android, need opinion

I'm currently developing android apps using phonegap + jquery mobile. I need to add notification bar in my application. Currently, I'm using Notification phonegap plugin to handle notification. But it didn't send notification when application closed. Is there any solution to keep my user recieve notification even application is closed? Can I use Google Cloud Messanging to solve it?
Thank you and sorry for my bad english
You can use push notifications. The following plugin handles both Android and iPhone notifications:
https://github.com/phonegap-build/PushPlugin
A notification will be shown whenever a push message is received and it contains a message attribute.

Categories

Resources