Navigation

    Monaca & Onsen UI
    • Register
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. raj wilson
    R
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    raj wilson

    @raj wilson

    0
    Reputation
    5
    Posts
    1035
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    raj wilson Follow

    Posts made by raj wilson

    • Same production keystore but different SHA1 fingerprints

      Hi,

      I have been publishing my apps to the Playstore above 3 years using monaca. But last week I tried to publish the apk but the Playstore restricted my upload by responding with the below message :

      “You uploaded an APK that is not signed with the upload certificate. You must use the same certificate. The upload certificate has fingerprint:”

      and it showed new sha1 key.

      What went wrong? Please help

      posted in Monaca Tools
      R
      raj wilson
    • RE: How to install phonegap-push-plugin 2.0.0 in monaca with cordova-android version 6.2.0

      @khemry Thanks.
      I have found the solution.
      For Cordova 6.5.0, phonegap-plugin-push version 1.10.6 and 1.10.5 are compatible none others does.
      Other versions > 1.10.6 says gradle 4 depreciated.
      Hope, this solution will help someone also.

      posted in Monaca Tools
      R
      raj wilson
    • Build ERROR : Could not find any version that matches com.google.android.gms

      Im using Monaca onsenui and angularJS v1.x.x

      Project Config is :
      CLI Version: 6.5.0
      Android Platform: 6.2.3

      Im getting strange build error as below :

      Fetch queue Info...
      Start building 5b3e11a9e78885d5064effd3
      Setup working directories...
      Download project archive...
      Extract project archive...
      Fetch project info...
      Search builder by config
      Webview:null
      Arch:null
      cordova version: 6.5.0
      
      
      - preBuild -
      
      - Cordova create -
      $ /data/build-server/cordova/6.5.0/bin/cordova create /tmp/monaca/5b3e11a9e78885d5064effd3/project
      Creating a new cordova project.
      
      
      - Copy .monaca-res directory -
      
      - Copy config.xml -
      
      - Cordova platform add -
      $ /data/build-server/cordova/6.5.0/bin/cordova platform add /data/build-server/cordova/platforms/android/6.2.3 --nofetch
      Adding android project...
      Creating Cordova project for the Android platform:
      	Path: platforms/android
      	Package: com.package.name
      	Name: ProjectName
      	Activity: MainActivity
      	Android target: android-25
      Subproject Path: CordovaLib
      Android project created with cordova-android@6.2.3
      Discovered plugin "phonegap-plugin-push" in config.xml. Adding it to the project
      Fetching plugin "phonegap-plugin-push@1.11.1" via npm
      Installing "phonegap-plugin-push" for android
      Subproject Path: CordovaLib
      
      
      - Copy external plugin setting files -
      
      - Copy files for signing -
      
      - Copy www files -
      
      - Cordova plugin add -
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add mobi.monaca.plugins.Monaca@3.1.0
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add mobi.monaca.plugins.datepicker@1.0.1
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-custom-config@2.0.3
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-whitelist@1.3.1
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-splashscreen@4.0.3
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-geolocation@2.4.3
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-camera@2.4.1
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-globalization@1.0.7
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-inappbrowser@1.7.1
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-dialogs@1.3.3
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-network-information@1.3.3
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-device@1.1.6
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-device-motion@1.2.5
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-device-orientation@1.0.7
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-statusbar@2.2.3
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-contacts@2.3.1
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add /tmp/monaca/5b3e11a9e78885d5064effd3/output/plugins/cl.rmd.cordova.dialoggps
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add /tmp/monaca/5b3e11a9e78885d5064effd3/output/plugins/com.teamnemitoff.phonedialer
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add /tmp/monaca/5b3e11a9e78885d5064effd3/output/plugins/cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=**private**
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add /tmp/monaca/5b3e11a9e78885d5064effd3/output/plugins/cordova-plugin-sim
      $ /data/build-server/cordova/6.5.0/bin/cordova plugin add /tmp/monaca/5b3e11a9e78885d5064effd3/output/plugins/phonegap-plugin-push --variable SENDER_ID=**private**
      
      - Cordova prepare -
      $ /data/build-server/cordova/6.5.0/bin/cordova prepare android
      cordova-custom-config: Skipping auto-restore of config file backup(s)
      
      
      - Cordova compile -
      $ /data/build-server/cordova/6.5.0/bin/cordova compile --release --device
      ANDROID_HOME=/data/android-sdk
      JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home
      :wrapper
      
      BUILD SUCCESSFUL
      
      Total time: 0.829 secs
      Subproject Path: CordovaLib
      The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
      	at build_2r0ehsbpso67cmhfa87fmt3vu.run(/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/build.gradle:138)
      The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
      Incremental java compilation is an incubating feature.
      The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
      
      BUILD FAILED
      
      Total time: 7.146 secs
      
      
      - postBuild -
      Remove working directories...
      Build Error: Error: Sandbox Exec Error: [ 
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      A problem occurred configuring root project 'android'.
      > Could not resolve all dependencies for configuration ':_debugApkCopy'.
         > Could not find any version that matches com.google.android.gms:play-services-gcm:15+.
           Versions that do not match:
               11.0.4
               11.0.2
               11.0.1
               11.0.0
               10.2.6
               + 18 more
           Searched in the following locations:
               file:/data/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml
               file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/maven-metadata.xml
               file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/
               file:/data/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml
               file:/data/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/
               file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/maven-metadata.xml
               file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/
           Required by:
               project :
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      Error: /private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/gradlew: Command failed with exit code 1 Error output:
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      A problem occurred configuring root project 'android'.
      > Could not resolve all dependencies for configuration ':_debugApkCopy'.
         > Could not find any version that matches com.google.android.gms:play-services-gcm:15+.
           Versions that do not match:
               11.0.4
               11.0.2
               11.0.1
               11.0.0
               10.2.6
               + 18 more
           Searched in the following locations:
               file:/data/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml
               file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/maven-metadata.xml
               file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/
               file:/data/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml
               file:/data/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/
               file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/maven-metadata.xml
               file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/
           Required by:
               project :
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
       ]
      
      

      From analysing this issue in google found a solution : https://stackoverflow.com/questions/34812616/could-not-find-any-version-that-matches-com-google-android-gmsplay-services-plu

      This solution is related to the monaca build engine in your server I hope.

      Kindly help to solve this issue. It would be very grateful.

      posted in Monaca Tools
      R
      raj wilson
    • RE: How to install phonegap-push-plugin 2.0.0 in monaca with cordova-android version 6.2.0

      I switched over to https://github.com/phonegap/phonegap-plugin-push/tree/v1.x (version 1.11.1) and fallowed the installation as said in https://github.com/phonegap/phonegap-plugin-push/blob/v1.x/docs/INSTALLATION.md, but in vain.
      nothing happened, not even var push = PushNotification.init({.... or push.on('registration'... does not respond anything.

      I have tested the plugin with both config.xml patterns :
      with project id :

      <plugin name="phonegap-plugin-push" spec="1.6.0">
          <param name="SENDER_ID" value="XXXXXXX" />
      </plugin>
      

      with fcm id :

      <plugin name="phonegap-plugin-push" spec="1.6.0">
          <param name="SENDER_ID" value="1:XXXXXXX:android:abcdefghijklmno" />
      </plugin>
      

      Both didn’t work.

      My project details :

      0_1530789304799_Screenshot at Jul 05 16-43-01.png

      Push Plugin Variable added :
      0_1530789349080_Screenshot at Jul 05 16-44-36.png

      Can you help me to make atleast this version work…

      posted in Monaca Tools
      R
      raj wilson
    • How to install phonegap-push-plugin 2.0.0 in monaca with cordova-android version 6.2.0

      I was using phonegap-plugin-push v1.x.x which was working perfectly in monaca project with onsen-ui v1 and angularJS v1.x.x.
      But when I updated the phonegap-plugin-push to v2.0.0 and migrated the google console project to Firebase Console and added the generated google-service.json file to the root folder of the monaca project the PushNotification.init({… function stopped working.

      I added the snippets also in the config.xml as documented in the phonegap-plugin-push installation :

        <platform name="android">
          <resource-file src="google-services.json" target="google-services.json" />
        </platform>
      

      I generated custom debugger but it said :
      “This following plugins are not included in the debugger phonegap-plugin-push”

      So I added the below code to find what went wrong while initialising the plugin :

            try
            {
                var push = PushNotification.init({
                    android: {
                    },
                    browser: {
                        pushServiceURL: 'http://push.api.phonegap.com/v1/push'
                    },
                    ios: {
                        alert: "true",
                        badge: "true",
                        sound: "true"
                    },
                    windows: {}
                });
      
                push.on('registration', function(data) {
                    $rootScope.REGISTER_TOKEN = data.registrationId;
                    alert(Your token is : '+$rootScope.REGISTER_TOKEN);                
                });
            }
            catch(e)
            {
                alert(JSON.stringify(e));           
            }
      

      But got an alert just saying ERROR and nothing else.

      What is wrong in the installation process or code? Please help.

      posted in Monaca Tools
      R
      raj wilson