0
votes

I've created a parse Application, created provision for the phone that includes push notifications ,and created a p12 file and uploaded it to the Parse server so that the server can theoretically send push notifications. I can see the deviceToken get registered in the data browser, but when I try to use the Dashboard to send a push notification to all the devices, I get the following message "Query Builder inaccessible because no valid devices were found". Am I missing something? I've tried to poor through the documentation to figure it out but I'm stumped.

1

1 Answers

0
votes

In the data browser, do you have items in your Installation class? What does your query look like on the Parse Push Dashboard?

If you don't have any items in your Installation class, you're going to need to, on the devices, register for push notifications. I'm not sure if you're using iOS or Android, but for iOS, this looks a little like this:

    [[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound];

and I'm doing this in my App Delegate's

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;

method. On Android, I'm sure there is something similar.

In addition to this, if you're not querying over Installation objects, then that could be causing the issue too, because Push notifications have to be based off of Installations.