I used the local notification plug in for an Android and iOS application. It worked properly with the Android Application but I faced issues with the IOS application.
When used in iOS application I didn't receive any notifications.
For your reference I am sending a sample code which I have used in my application:
window.plugin.notification.local.add({
id: i,
message: "Hello",
icon: 'file://img/icon.png',
sound: '/www/audio/beep.mp3',
badge: i,
json: JSON.stringify({ test: 123 })
});
using plugin: de.appplant.cordova.plugin.local-notification-sv
Related
I'm using cordova-plugin-firebase. On Android everything works fine, on iOS when I send push message via FireBase Console it appears only in xCode console:
Received data message: {
"collapse_key" = "myapp.id";
from = 932472342376;
notification = {
body = "Some notification";
e = 1;
sound = default;
sound2 = default;
};
It appears only in console so I guess everything is setup correctly (like certificates, .plist file). How to force iOS to show this notification? I'm using latest version of xCode, Cordova and this plugin.
In app capabilities I also checked Background Modes - Remote Nofitications and Push Notifications but without changes.
It is also worth to say that this message comes only if app is opened, phone home button click indicates in console message: "Disconnected from FCM". Shouldn't it be connected instantly?
I added local notification in my ionic application using the below code and was working good.but there is an issue on iOS
https://ionicframework.com/docs/native/local-notifications/
this.localNotifications.schedule({
id: 1,
text: 'Single ILocalNotification',
sound: isAndroid? 'file://sound.mp3': 'file://beep.caf',
data: { secret: key }
});
This is not working on IOS ,if we open application from background.
Error replicate steps.
1.Open applicaton
2.Minimize application in the background
3.Open application from background.
4.After this the notification was not showing on the status bar,but we can here the notification sound
I'm trying to invoke the following url on iOS 11.0 developer preview:
<html>
<body>
Click Me!
</body>
</html>
When you click the link above, iOS successfully opens the native iOS Messages application. If the user previously had the iOS Messages app open in the background on their phone, then iOS properly passes in the query parameters contained in the link, e.g. to: (24321) and body: (This is the body), but if the user does NOT already have iOS Messages open, then iOS opens Messages, but does NOT open a message w/ to and body filled out.
This is not an issue on iOS 10, it seems to have been introduced in iOS 11.
I try to send notification to my android and ios IONIC app using FCM. I use
phonegap-plugin-push Plugin : v2.0.0-rc5
I try to send notification from Firebase successfully landed in my Android device but in iOS in response I get a message "Invalid registration token. Check the token format."
I follow all steps based on phonegap-plugin-push doc, and I copy Google-Services.plist created in Firebase in my app folder. in response I get Notification ID also in my iPhone.
Please help me.
I am using browser-deepling.js for deeplinking (https://github.com/hampusohlsson/browser-deeplink/) but android and ios always open into the app store even app is installed.
<button type="button" class="view"> view</button>
<script>
deeplink.setup({
iOS: {
appName: "App name",
appId: "app_id",
},
android: {
appId: "app id"
}
});
function openApp(url){
deeplink.open(url);
return false;
}
</script>
Thanks in advance.
This GitHub code that you have linked is, itself, not capable of opening apps using Universal Linking, which is a requirement for opening apps on iOS, or App Links, the equivalent Android technology.
I think you are looking for Branch's free service here (https://branch.io). Firebase also has a Branch knock-off service I believe.