Greetings! My name is Richard Makhaya. I’m having some difficulty with android push notifications. Having read the tutorial I made sure to download the google play service as well as android support libraries and updated the .unoproj file to include the “Fuse.PushNotifications” package and addded:
where fuseproject-140513 is my project ID from the google developer’s console. I also made sure that the cloud messaging service was enabled. But woe is me… The javascript code to detect push events does not even fire any events. i.e:
Another thing I might suggest based on my experience is - when you launch device preview on Android, close the app by clicking the hardware home button, then reopen it from recent apps screen.
I’m not entirely sure why, but sometimes the app wouldn’t register with GCM upon the first launch, while the second launch usually fires everything just fine.
And if that doesn’t help, try killing the preview from recent apps screen, then restart it from the device again, simply by launching the “App (preview)” application that will have been installed there when you ran the preview.
All of that said, push notifications obviously only work on an actual device.
I am trying to find any reference “How-to” for Push notifications. Can You please give me any example (raw) of files .ux and .unoproj
I followed this https://www.fusetools.com/docs/fuse/pushnotifications/push but could not make it work. I downloaded one of example apps and tried to implement it into. Here is my unoproj file:
If your app crashes, I suggest you create a new forum thread with all information, including any errors thrown. It may be completely unrelated to push notifications, so it doesn’t fit here in this thread.