Hi I am developing an webview app using Java and Objective-C. My client wants me to implement push notification in the app. But no push notification service (like firebase, OneSignal) is added in the website. is it possible to add push notification in the app??
Badly need some suggestions.. Thanks in advance..
You can still use Firebase when you dont want to add it to website.
i did it so :
FCM service on andoid registers device token to my MySQl server, my Webpage generates Push notifications, with PHP and Cron by selecting tokens from SQL.
When you want to create push notifications, then you need to add something to webpage anyway. (you have to generate message and also send them to devices who have installed your app. :). )
So :
FCM, MySQl, PHP/Java/js or something what selects message and token and sends them to FCM, FCM sends it to devices.
Related
I have an iOS app that integrated with Firebase Cloud Messaging to send push notifications from. I know that Firebase saves history of all sent notifications.
Is there a way for each specific device running the app to fetch its own history of sent notifications? I need to do it on client side, not on server.
There is currently no API to retrieve details of all the sent notifications with FCM (see this and this).
The idea is still feasible, however, you'll have to store the logs/history on your own, in your App Server. From there, you could setup your app to retrieve the details that only correspond to the device.
I have a website and I made FCM instant notifications with Google Firebase. Notifications working ok.
I want to make an android application that will just open the site as an application and publish it on Google Play.
I tried to do with a webviewer, the site work ok but I do not receive notifications and he don't ask for access.
Could someone give me some ideas to solve my problem?
You have to do a whole process to get Notification Push on your android application, you cannot receive (on the mobile app) the same way you receive the notification on your website.
See for more information : https://firebase.google.com/docs/cloud-messaging/android/client
I'm aware of GCM services for push notifications, but I have this issue.
I have a android app which will send a data to a local web server (php) that will response to another android device with the data sent, a normal push notification with GCM, I think.
But I need this to work even without internet, because it is a local web app that will work only that.
Is that even possible? Android device X send json data to web server that will send the data to other android device Y.
How can I verify that exists new data in the device Y ?
Thanks. I know its a little wierd.
Yes, it is possible. But it is not easy to develop. This is why:
Push notifications work attached to an account service. So you would have to implement an Authenticator service and then the whole push platform yourself.
I would not use GCM for what you are doing though. If it is working on a local network, you can use "polling" (request the server every now and then for updates)
I have messaging php based application where users login and send messages to each other.
I created an android app that is a WebView pointing to that website to give and in-app feeling to my users.
Now I'd like to add a notification feature to the app which will notify users every time they receive a message.
Is it possible to do so with a WebView based application ?
Thanks
You could send a notification from the php using Google Cloud Messaging every time there is a new message for that user.
Take a look here http://developer.android.com/guide/google/gcm/index.html
I am new in Android and trying to develop an app with push notification. I have a small confusion on the architecture behind the c2dm, that after getting the authentication token and device reg_Id, the application server will send them along with the message, but how will the server will know to send the message to the c2dm server?
I am getting an error and even I am not able to add a google account on my emulator for synchronization. While doing this my emulator says com.android.calender not there.
Thanks in advance.
you have to call web service to sent push notification on particular device. And whatever the massage you want to pass on device is written in web service. you can make web service any any language like php or .net. Ask me if you have any query regarding push.