当我尝试在app.js中设置GCM推送的API密钥时,出现了以下错误:
这是我使用的代码:
.config(['$ionicAppProvider', function($ionicAppProvider) {
// Identify app
$ionicAppProvider.identify({
// The App ID for the server
app_id: 'MY_APP_ID',
// The API key all services will use for this app
api_key: 'MY_API_KEY',
//The GCM project number
gcm_id: 'MY_GCM_PROJECT_NUMBER'
});
}])
ionic-service-core
被替换成ionic-platform-web-client
- http://docs.ionic.io/docs/migration-guide - Aldracor