Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49176

Ionic Push: GCM project number not found

$
0
0

@gianxlr wrote:

I'm trying to register a device to make notifications , but when i init, returns me this error

my code:

var app = angular.module('app', ['ionic','ngCordova', 'ionic.cloud'])
.config(function($stateProvider, $urlRouterProvider, $ionicCloudProvider) {
"use strict";
document.addEventListener("deviceready", function () {
$ionicCloudProvider.init({
debug: true,
dev_push : false,
core: {
"app_id": "xxxxx"
},
push: {
sender_id: "xxxxxx",
pluginConfig: {
ios: {
badge: true,
sound: true
},
android: {
iconColor: "#343434"
}
}
}
});
});
/* Set up the states for the application's different sections. */
$stateProvider
.state('login', {name: 'login', url: '/login', templateUrl: 'views/content/login.html', controller: 'MainCtrl'})
.state('cadastro', {name: 'register', url: '/register', templateUrl: 'views/content/register.html', controller: 'MainCtrl'})
.state('recover', {name: 'recover', url: '/recover', templateUrl: 'views/content/recover.html', controller: 'MainCtrl'})
.state('home', {name: 'home', url: '/home', templateUrl: 'views/content/home.html', controller: 'MainCtrl'})
;

}).controller(..........

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49176

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>