Im a beginner in Android Parse technology.I tried a sample app with this link:
https://parse.com/apps/quickstart#parse_push/android/new
I have followed each steps and successfully run the app on android mobile. But for push when I clicked "send a push" button , that shows message "No registered devices".There is no information is available that how I can register a device .
Thanks
Arun
Check out this section of the Parse documentation: https://parse.com/docs/push_guide#installations/Android
You need to create an installation for your app on start up. This will register your device for push notifications from your app. If you want to check that a device has been installed, go to your Parse Dashboard and look at the Installations table. The number of rows here will indicate the number of devices that have been registered.
Related
i am not receiving notification after sending it through firebase console , i tried sending many notification but received one or two from around 20 notifications, i followed this guide firebase messaging from github
,why am i not receiving notification, my app is installed in one emulator and in one of my phone but when i receive notification which i have sent through notification panel i get them either on phone or emulator never got them on both.
below is the screenshot of my console
check your android app configuration in firebase console
use a restful client to make the request, i suggest
chrome-extension://aejoelaoggembcahagimdiliamlcdmfm/dhc.html,
there you can see the response of the request, if your request are sent sucessfully or if you have error, and the response tells what kind of error you have
check android app , in the method onMessageReceived and print everything to see if you receive information, besides you can print the property "from" who is the id_number of your proyect, and you can see if the messages come from your firebase android app
check firebase documentation.
I've implemented everything just with the guides and its working pretty well
I solved the same problem.
The problem seems to be the browser compatibility/version. Mozilla Firefox could easily handle this.
Make sure your app is running in the background.
Open the Firebase notification console in the FireFox browser and send notifications.
Make sure token is generated
FirebaseInstanceId.getInstance().getToken();
in my case, the package name defined at firebase console isn't the same as defined on gradle and manifest of the app (i changed it one time in the app), so the app won't be able to receive notifications sent from firebase console.
They both have to be the same!
I did not add a new firebase project, just go to project settings at console and add new android app with another package name and have a look at the newly generated google-services.json and change some lines at you android studio project.
Besides the tips that Pavul Zavala said ، keep this in mind that just data message can received by FirebaseMessagingService even application closed or run in background and notification message can't handle(till this moment) when application run in background.
And all message that sent via FireBase console Contains , they always include a notification key
more detail at :
Push notification works incorrectly when app is on background or not running
In my case, what helped me is creating a new simulator in Android Studio
Few things to check:
in Firebase console https://console.firebase.google.com/ add/configure the project
in Android Studio connect to Firebase - Manu -> Tolls -> Firebase -> Cloud Messaging (Connect, Add FCM to your app)
Send notification from Firebase console
So, again, I recreated Virtual Device (open AVD manger and create the same device with the same API level)
I will be happy if somebody will save the time using this post :)
Ideally it shouldn't behave like that but it might be due to following reasons:
Check the notification priority of your app in the app settings of the device.
You might be sending the token of one particular device, Your target should be User segment.
I am trying to implement push notifications in Unity Android, I've completed the Quick Start and have done everything I can find out to do, but when I try to do a test push using the "Test" button on the Quick Start page, I get the message "Can't find any registered devices yet...". No errors or messages appear in the Parse logs, just this on the Quick Start page itself just below the "Test" button.
I have installations in the "Installation" table. I've even added code to my app to subscribe to channels (I've tried various names, as well as an empty string ""), and these subscriptions appear in the Installation table for those installation records.
When I go to initiate a push from the Push page on the dashboard, it correctly lists the number of devices that will be targeted by the push, but none of my devices receive anything, and it shows that 0 pushes were sent. And I keep receiving the "Can't find any registered devices yet..." message on the Quick Start page.
I even tried building the Push sample app, found some things wrong with it which prevented it from even running on the device, but I cannot get it to even register an installation, much less receive a push notification.
I have been working on this for over a week now, and I'm desperate for some help. I really need to know the reasons why Parse would be reporting there are no registered devices despite the presence of installations.
Details:
Parse 1.6.0
Unity 5.1.0.f3
i am using parse push notification to send push notifications to users of my app. I have added the code suggested in
Android Parse Push notification device registration only one time on one device
on every unistall and then a fresh install causes my device to get registered again, bt the on updating the app simply(without uninstalling it first), the object gets updated with the help of code suggested in the link above. How do i update the same user if he/she installs the app after unistalling or atleast remove his data from my parse data
I am trying to implement push notification in my android application through quickblox API.
All the steps (registration, create push token , create subscription )are successfully executed but finally its throwing the following error message.
"No recipients. At least one user should be subscribed for GCM
(Android Push) (through SDK or REST API)"
I am not getting getting any clue on this error
I had same problem in iPhone. You are trying to send push notification to the user who has not subscribe yet or no one has subscribed for push notification.
What can you do : - run your application in actual device and run application in simulator with different login. And try to send push notification.
To which user you send Push Notification?
I thing you are trying to send push to user which is not subscribed for GCM (Android Push), and you got an error: "No recipients. At least one user should be subscribed for GCM (Android Push)"
You must register your device through the method GCMRegistrar.register() , please try to run on real phone rather than emulator. I also got the same error. But it was resolved
Updating my answer, I solved this issue,
After subscription of push just logout from Quickblox to receive push notification.
I am trying to develop an application in android using eclipse . This application is like finding the friend location and directions using android mobile .
I am doing this in a way :
First this application is installed in user and friend both , when the user wants to retrieve the location of the friend , in our application we want a auto-message to be sent to the friend which asks his permission .If he gives it , a message containing the location(latitude, longitude) of friend goes to user and then He gets the location and path to that friend .
Now Getting the location part in a mobile having the This application has been done .
But The auto messaging part is still incomplete .
So if anyone can tell me any tutorial or sample code to sent auto messages( like in facebook we do add as a friend and a message is sent for the approval )
All of this is done through GPS .
There are loads of examples over the net on how to send automated sms messages. Here are a few i found courtesy google..
http://mobiforge.com/developing/story/sms-messaging-android
http://thinkandroid.wordpress.com/2010/01/08/sending-sms-from-application/
Basically you need to know how to use intents and BroadcastReceivers that will listen to particular events and send the text message, and do particular actions when sms is received also.
Hope this helps.
You could try to use a server that sits between the two phone as an intermediary. You can have the first phone send a request to the server saying "Hey, where's friend X". The server can then use something like android Cloud To Device Messaging to push a query to the friends phone. Then on the friends phone, have an activity pop up asking for permission to send the location. A message containing the location can then be sent back to the server and pushed to the first device using C2DM again.