Target 4.x+ only

Sorry if this is mentioned somewhere, but I can’t seem to figure out how to target 4.x+ only for Android. There are some issues with 2.3 that I don’t want to solve, mostly related to not being able to send a gcm based message to the device from PHP. Is there way to do this? In lieu of that, has anyone been able to trigger gcm messages to a legacy device?

David,

There is currently no means of changing the min Android version supported.  But that said, you shouldn’t have to.  Corona does correctly support GCM push notifications on Android 2.2, 2.3, and new operating system versions.  We’ve tested it and it works.

Note that we did have GCM issues with apps built with Corona with release build #1137.  It was an issue with the APK that was being returned by our servers when doing Corona Simulator builds.  We resolved this issue on our servers in June 27th.  This means if you rebuild your app with the last release build #1137, you’ll see that GCM push notifications do work on Android 2.x devices.  So, I suggest that you rebuild and retest it.  It should work fine.

Hi Joshua, I’ve been doing builds with release 2013.1137 and don’t have this issue wtih 4.x devices. I am triggering the message in a similar approach to this: http://stackoverflow.com/questions/11242743/gcm-with-php-google-cloud-messaging

We just aren’t seeing the messages come through and I have limited access to 2.3 devices. 

David,

I just did a build of sample project “Notifications/GooglePushNotifications” with Corona release build #1137 and ran it on the following devices:

  • 1st generation Droid running Android 2.2

  • Samsung Galaxy SII running Android 2.3

GCM push notifications worked on both devices.  So, this proves that Corona’s GCM support does work on the older Android OS versions.

I think the Android 2.3 device you were testing with must have had other problems.  Perhaps it wasn’t connected to the Internet or you haven’t set up an account with the device’s Google Play.  You see, GCM notifications communicate via the Google Play app.  So, I recommend that you tap on the device’s Google Play app and verify that you are able to view the store’s contents.

From an end-users standpoint, if they’re able to purchase your app from Google Play, then they’re already set up to use push notifications… meaning you have nothing to worry about.

Anyways, that’s my 2 cents.

David,

There is currently no means of changing the min Android version supported.  But that said, you shouldn’t have to.  Corona does correctly support GCM push notifications on Android 2.2, 2.3, and new operating system versions.  We’ve tested it and it works.

Note that we did have GCM issues with apps built with Corona with release build #1137.  It was an issue with the APK that was being returned by our servers when doing Corona Simulator builds.  We resolved this issue on our servers in June 27th.  This means if you rebuild your app with the last release build #1137, you’ll see that GCM push notifications do work on Android 2.x devices.  So, I suggest that you rebuild and retest it.  It should work fine.

Hi Joshua, I’ve been doing builds with release 2013.1137 and don’t have this issue wtih 4.x devices. I am triggering the message in a similar approach to this: http://stackoverflow.com/questions/11242743/gcm-with-php-google-cloud-messaging

We just aren’t seeing the messages come through and I have limited access to 2.3 devices. 

David,

I just did a build of sample project “Notifications/GooglePushNotifications” with Corona release build #1137 and ran it on the following devices:

  • 1st generation Droid running Android 2.2

  • Samsung Galaxy SII running Android 2.3

GCM push notifications worked on both devices.  So, this proves that Corona’s GCM support does work on the older Android OS versions.

I think the Android 2.3 device you were testing with must have had other problems.  Perhaps it wasn’t connected to the Internet or you haven’t set up an account with the device’s Google Play.  You see, GCM notifications communicate via the Google Play app.  So, I recommend that you tap on the device’s Google Play app and verify that you are able to view the store’s contents.

From an end-users standpoint, if they’re able to purchase your app from Google Play, then they’re already set up to use push notifications… meaning you have nothing to worry about.

Anyways, that’s my 2 cents.