Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-1456

SERVICE_NOT_AVAILABLE on Android 2.3 Cordova Push Plugin

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • None
    • None
    • cordova
    • None
    • Android 2.3.4 Motorola Droid X

      Error message is SERVICE_NOT_AVAILABLE

      I used
      cordova plugin add org.jboss.aerogear.cordova.push

      cordova plugin add https://github.com/aerogear/aerogear-pushplugin-cordova.git

      I will attach the logcat for Android 4 and Android 2.3 - same code deploys fine to iOS 6, iOS 7, Android 4.4.2 and 4.3.0

        1. index.html
          2 kB
        2. index.js
          3 kB
        3. Targeting_Android_4_logcat.txt
          5 kB
        4. Targeting_Android2.3_logcat.txt
          4 kB

            [AEROGEAR-1456] SERVICE_NOT_AVAILABLE on Android 2.3 Cordova Push Plugin

            I think my issue was that the phone was no longer "logged into" the Google account. I had turned on 2-factor auth and this phone+Android 2.3.4 could not deal with it - it refused to login - the workaround was to build another google account without 2-factor, then it all started working - push messages flowing.

            Burr Sutter added a comment - I think my issue was that the phone was no longer "logged into" the Google account. I had turned on 2-factor auth and this phone+Android 2.3.4 could not deal with it - it refused to login - the workaround was to build another google account without 2-factor, then it all started working - push messages flowing.

            bsutter@redhat.com Run this app (http://cloud.passos.me/2h0V2c110c2P) take a screenshot and attach here please.

            Daniel Passos (Inactive) added a comment - bsutter@redhat.com Run this app ( http://cloud.passos.me/2h0V2c110c2P ) take a screenshot and attach here please.

            This could be an issue with not setting the time on the phone. Could you check that you have the time set?

            Erik Jan de Wit added a comment - This could be an issue with not setting the time on the phone. Could you check that you have the time set?

            Burr Sutter added a comment -

            Uninstall and another "cordova run android" to re-deploy results in the same SERVICE_NOT_AVAILABLE during the registration call.

            Burr Sutter added a comment - Uninstall and another "cordova run android" to re-deploy results in the same SERVICE_NOT_AVAILABLE during the registration call.

            I had the same error (SERVICE_NOT_AVAILABLE), on Android 4.1.2 (Samsung SII) - when I created a completely new app and I ran it the first time:
            https://github.com/aerogear/aerogear-pushplugin-cordova/pull/17#issuecomment-37282470

            Running it the second time, I was no longer getting that error.

            SERVICE_NOT_AVAILABLE is an error code provided by GCM; Not sure we can do much there .... but perhaps we can improve our handling or so.... Not sure....

            bsutter@redhat.com Do you mind trying to re-run it again ? Just to double check ?

            Matthias Wessendorf added a comment - I had the same error (SERVICE_NOT_AVAILABLE), on Android 4.1.2 (Samsung SII) - when I created a completely new app and I ran it the first time: https://github.com/aerogear/aerogear-pushplugin-cordova/pull/17#issuecomment-37282470 Running it the second time, I was no longer getting that error. SERVICE_NOT_AVAILABLE is an error code provided by GCM; Not sure we can do much there .... but perhaps we can improve our handling or so.... Not sure.... bsutter@redhat.com Do you mind trying to re-run it again ? Just to double check ?

              danielpassos Daniel Passos (Inactive)
              bsutter@redhat.com Burr Sutter
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: