App works completely works normal in <= android 8 .In android 9 ie api 28 this error message is produced when mobile is logged. ionic version 1 var PLATFORM_VERSION_BUILD_LABEL = ‘6.2.3’;
E/ActivityTrigger: activityStartTrigger: not whiteListed io.starter.starter/io.cordova.starter.MainActivity/4
E/ActivityTrigger: activityResumeTrigger: not whiteListed io.starter.starter/io.cordova.starter.MainActivity/4
got blank screen
$cordovaPush.register(config).then(function (result) {
console.log('DeviceCtrl cordovaPush register sucess' + ionic.Platform.isIOS()); //code stops here nothing received in android 9
$scope.registerDisabled = true;
// ** NOTE: Android regid result comes back in the pushNotificationReceived, only iOS returned here
if (ionic.Platform.isIOS()) {
$window.localStorage && $window.localStorage.setItem('device_token', result);
$rootScope.device_token = $window.localStorage.getItem('device_token');
$scope.regId = result;
$rootScope.regId = result;
storeDeviceToken("ios");
}
}, function (err) {
//window.analytics.trackException('ISE:Unable to Register Device For Notification.', true);
console.log('DeviceCtrl cordovaPush register error' + err);
});
// Notification Received
$rootScope.$on('$cordovaPush:notificationReceived', function (event, notification) {
console.log('DeviceCtrl notificationReceived' + notification); // this is not excuted
if (ionic.Platform.isAndroid()) {
handleAndroid(notification);
} else if (ionic.Platform.isIOS()) {
handleIOS(notification);
$scope.$apply(function () {
$scope.notifications.push(JSON.stringify(notification.alert));
})
}
});
added network_security_config.xml ,meta tag in index.html for whitelist plugin, access origin=‘*’ in config.xml ,android:usesCleartextTraffic = true and permission tag for foreground-services in android manifest.xml , no debug console.log errors
<network-security-config>
<base-config cleartextTrafficPermitted="true" />
</network-security-config>
"com.phonegap.plugins.PushPlugin": "2.5.0",
"cordova-plugin-app-event": "1.2.0",
"cordova-plugin-badge": "0.7.2",
"cordova-plugin-console": "1.0.2",
"cordova-plugin-datepicker": "0.9.3",
"cordova-plugin-device": "1.1.1",
"cordova-plugin-dialogs": "1.2.0",
"cordova-plugin-file": "4.1.1",
"cordova-plugin-google-analytics": "0.8.1",
"cordova-plugin-inappbrowser": "1.3.0",
"cordova-plugin-media": "2.2.0",
"cordova-plugin-network-information": "1.2.0",
"cordova-plugin-splashscreen": "3.1.0",
"cordova-plugin-statusbar": "2.1.1",
"cordova-plugin-whitelist": "1.2.1",
"cordova-plugin-x-socialsharing": "5.0.12-dev",
"cordova-plugin-x-toast": "2.4.2",
"ionic-plugin-keyboard": "1.0.8"
anyone with suggestions please?? thanks in advance