Dont recive push notifications
See original GitHub issueHi, I 'm trying to get notifications on a test application to find out first as implimentarlo and then apply it to my application that is almost over .
I followed these steps
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>Probando notificaciones</title>
<link href="lib/ionic/css/ionic.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<script src="lib/ionic/js/ionic.bundle.js"></script>
<script src="lib/ionic.cloud.min.js"></script>
<script src="cordova.js"></script>
<script src="js/app.js"></script>
</head>
<body ng-app="starter">
<ion-pane>
<ion-header-bar class="bar-stable">
<h1 class="title">Ionic Blank Starter</h1>
</ion-header-bar>
<ion-content>
<div class="list list-inset" ng-controller="pushCtrl">
<button class="button button-block button-assertive" ng-click="mostrar()">Mostrar</button>
</div>
</ion-content>
</ion-pane>
</body>
</html>
angular.module('starter', ['ionic', 'ionic.cloud'])
.run(function($ionicPlatform, $ionicPush) {
$ionicPlatform.ready(function() {
if (window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
cordova.plugins.Keyboard.disableScroll(true);
}
if (window.StatusBar) {
StatusBar.styleDefault();
}
$ionicPush.register().then(function(t) {
return $ionicPush.saveToken(t);
}).then(function(t) {
console.log('Token saved:', t.token);
});
});
})
.config(function($ionicCloudProvider) {
$ionicCloudProvider.init({
"core": {
"app_id": "1fec09ac"
},
"push": {
"sender_id": "1038915667657",
"pluginConfig": {
"ios": {
"badge": true,
"sound": true
},
"android": {
"iconColor": "#343434"
}
}
}
});
})
.controller('pushCtrl', function($scope, $ionicPush) {
$scope.$on('cloud:push:notification', function(data) {
var msg = data.message;
alert(msg.title + ': ' + msg.text);
});
});
question in the forum link
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Android Notifications Not Showing Up? 10 Fixes You Can Try
Android Notifications Not Showing Up? 10 Fixes You Can Try · 1. Reboot Your Phone · 2. Review the App's Notification Settings ·...
Read more >How to Fix Notifications Not Showing up on Android - Lifewire
How to Fix No Notifications on Android · Check That Do Not Disturb is not enabled. · Restart your phone. · Make sure...
Read more >5 ways to fix iPhone notifications when you're not receiving them
Sometimes, the reason you're not getting notifications could simply be that you somehow turned them off. Here's how to double-check your ...
Read more >Why Some Users Don't Receive Push Notifications? [with ...
1. Notifications can be blocked by User at OS Level: · 2. Device-specific issues: · 3. User Not connected to GCM due to...
Read more >Why am I not getting ClassCover Booking Push Notifications ...
Why am I not getting ClassCover Booking Push Notifications on my Android phone? · Settings > Sounds & Vibration > Do Not Disturb:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello, since this was an issue with Ionic cloud I have moved this issue to the appropriate repo. Thanks!
@jgw96 thanks a lot