Push notifications

I have tried to send push notification with pushwoosh. someone that has better luck ? I also have configure device but no messages send . Could you please give me some advice in order to make it work. Thanks in advance

  Recommend adding lots of debug/print statements in the associated functions and then watching the devices console output accordingly. There are too many error use cases to speculate whats not working.

Is there a step by step tutorial in order to help?

Have you gone through this already:  http://docs.coronalabs.com/guide/events/appNotification/index.html#remotereg

Also see our guide:

http://docs.coronalabs.com/guide/events/appNotification/index.html

Rob

Thanks Rob
I need to also work with iphone.
I have to be sure it will work for me buy the enterprice.

Know of any example where I can look?

thanks

  Recommend adding lots of debug/print statements in the associated functions and then watching the devices console output accordingly. There are too many error use cases to speculate whats not working.

Is there a step by step tutorial in order to help?

Have you gone through this already:  http://docs.coronalabs.com/guide/events/appNotification/index.html#remotereg

Also see our guide:

http://docs.coronalabs.com/guide/events/appNotification/index.html

Rob

Thanks Rob
I need to also work with iphone.
I have to be sure it will work for me buy the enterprice.

Know of any example where I can look?

thanks

I followed every step in the guide and my app does ask if I want to enable notifications (iOS).

I do receive the registration event, but no pushes.

That sounds like a potential setup problem with your host.

Rob

Thanks Rob, I got it. To others that are having this issue: follow every step in the PushWoosh guides carefully. It’s critical to set up your iOS certificates, or your Android settings exactly as they say. If you get something wrong, then yes it’s easy for Corona to generate the registration event, but PushWoosh cannot send the notifications to the device unless all of the setup is properly done.

Rob, I have another issue though. The badge count on iOS doesn’t seem to be handled properly. In our case, we use PushWoosh setting the badgeCount to +1 on the server side for each push. This works, and the badge count increments. We then clear the badge count when they come i  the app. This also works. But on the next +1 push from our server, it does not go to 1 even though the count was just cleared, it continues to go up. Here is a step by step use case:

  1. The app is launched for the first time. There is of course no badge count

  2. The app receives a push notification using a “+1” in a pwCall ( a really simple PHP function suggested by PushWoosh)

  3. Badge count reads as 1

  4. User opens the app, the badge count is cleared using Corona’s native.setProperty("applicationIconBadgeNumber, 0) 

  5. This works properly, badge count is zero

  6. The app receives a NEW push notification using a “+1” in the same pwCall PHP code

  7. App badge count now reads as 2!!!

 

And so on.

 

So even though we can see the badge count getting cleared each time, on the NEXT +1 push, it retains a total number of pushes and it will keep incrementing.

After the user sees the 1, it gets cleared, so the on the next push they should see 1 again but instead they see 2.

 

So the user will see 1, 0, 2, 0, 3, 0, 4 …

I followed every step in the guide and my app does ask if I want to enable notifications (iOS).

I do receive the registration event, but no pushes.

That sounds like a potential setup problem with your host.

Rob

Thanks Rob, I got it. To others that are having this issue: follow every step in the PushWoosh guides carefully. It’s critical to set up your iOS certificates, or your Android settings exactly as they say. If you get something wrong, then yes it’s easy for Corona to generate the registration event, but PushWoosh cannot send the notifications to the device unless all of the setup is properly done.

Rob, I have another issue though. The badge count on iOS doesn’t seem to be handled properly. In our case, we use PushWoosh setting the badgeCount to +1 on the server side for each push. This works, and the badge count increments. We then clear the badge count when they come i  the app. This also works. But on the next +1 push from our server, it does not go to 1 even though the count was just cleared, it continues to go up. Here is a step by step use case:

  1. The app is launched for the first time. There is of course no badge count

  2. The app receives a push notification using a “+1” in a pwCall ( a really simple PHP function suggested by PushWoosh)

  3. Badge count reads as 1

  4. User opens the app, the badge count is cleared using Corona’s native.setProperty("applicationIconBadgeNumber, 0) 

  5. This works properly, badge count is zero

  6. The app receives a NEW push notification using a “+1” in the same pwCall PHP code

  7. App badge count now reads as 2!!!

 

And so on.

 

So even though we can see the badge count getting cleared each time, on the NEXT +1 push, it retains a total number of pushes and it will keep incrementing.

After the user sees the 1, it gets cleared, so the on the next push they should see 1 again but instead they see 2.

 

So the user will see 1, 0, 2, 0, 3, 0, 4 …