Git Product home page Git Product logo

Comments (2)

danielpassos avatar danielpassos commented on June 9, 2024

Hi @DokuMe I'm trying to reproduce that without success. That is what I'm doing:

Install Cordova 8

$ npm install -g cordova@8
/Users/passos/.nvm/versions/node/v12.12.0/bin/cordova -> /Users/passos/.nvm/versions/node/v12.12.0/lib/node_modules/cordova/bin/cordova
+ [email protected]
updated 1 package in 2.845s

Check Cordova version

$ cordova -v
8.1.2 ([email protected])

Create a new Cordova app

$ cordova create push-app org.aerogear.playground
Creating a new cordova project.
$ cd push-app

Add a dummy google-service.json

cat <<EOF >./www/google-services.json
{
  "project_info": {
    "project_number": "123456789012",
    "firebase_url": "https://aerogear.firebaseio.com",
    "project_id": "aerogear",
    "storage_bucket": "aerogear.appspot.com"
  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "1:754329551899:android:621420eb6f5bc9df",
        "android_client_info": {
          "package_name": "org.aerogear.playground"
        }
      },
      "oauth_client": [
        {
          "client_id": "9B2B57E6-6672-4672-B11D-63A3D5DD6DFF.apps.googleusercontent.com",
          "client_type": 3
        },
        {
          "client_id": "9B2B57E6-6672-4672-B11D-63A3D5DD6DFF.apps.googleusercontent.com",
          "client_type": 3
        }
      ],
      "api_key": [
        {
          "current_key": "9B2B57E6-6672-4672-B11D-63A3D5DD6DFF"
        }
      ],
      "services": {
        "analytics_service": {
          "status": 1
        },
        "appinvite_service": {
          "status": 1,
          "other_platform_oauth_client": []
        },
        "ads_service": {
          "status": 2
        }
      }
    }
  ],
  "configuration_version": "1"
}
EOF

Add Cordova Push plugin

$ cordova plugin add aerogear-cordova-push
Adding aerogear-cordova-push to package.json
Saved plugin info for "aerogear-cordova-push" to config.xml

Add Cordova Android platform

$ cordova platform add android
Using cordova-fetch for cordova-android@~7.1.1
Adding android project...
Creating Cordova project for the Android platform:
	Path: platforms/android
	Package: org.aerogear.playground
	Name: HelloCordova
	Activity: MainActivity
	Android target: android-27
Android project created with [email protected]
Android Studio project detected
Android Studio project detected
Installing "aerogear-cordova-push" for android
Installing "es6-promise-plugin" for android
Subproject Path: CordovaLib
Subproject Path: app

      Add an alpha and transparent notification icon into platforms/android/res/drawable folder to show correctly in Android Lollipop and above. The icon name should be icon_white.png

Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for android
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
--save flag or autosave detected
Saving android@~7.1.4 into config.xml file ...

from aerogear-cordova-push.

danielpassos avatar danielpassos commented on June 9, 2024

I'm going to close it since I could not reproduce it, feel free to reopen if you still having this problem

from aerogear-cordova-push.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.