android - PUSH: Unable to get GCM project number, run "ionic config set gcm_key your-gcm-id" -


i cannot send push notifications android. updated latest ionic cli updated latest ionic lib after did:

ionic config build 

and

ionic prepare android 

my io-config.json has

{"app_id":"01e6d3ad","api_key":"some_secret_key","gcm_key":"142738311658"} 

i've made ionic config set gcm_key your-gcm-id several time , replaced 'your-gcm-id' project id.

but still message:

push: unable gcm project number, run "ionic config set gcm_key your-gcm-id" 

and when try register ionic notification get:

$ionicpush:register_error org.json.jsonobject$1 cannot cast java.lang.string 

following ionic documentation android, must run command:

ionic config set gcm_key <your-gcm-project-number> 

in order add projectnumber .io-config.json


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -