I created one project and did all the steps required for push notification creating topic,subs and all but when I call watch method will it work for who I have created the project or for any user who i give in watch method
The user the access token you are using corresponds to when calling the watch-method, is the one you will get push notifications for.
Related
I am stuck with custom push notification. What I am looking to acheive is to have image in notification. For that, the following things has been done:
Created Notification Service Extension
Enabled App groups and push notification in both- app and notification extension.
Trying to build app, but unable to install on iPhone with the error:
having same bundle id in app and extension
Do I need to create separate bundle id and provisioning profiles for Notification Extension? If yes then how notification service class methods will be called?
Waiting for your early response. Thank You.
Expectation- Need to implement custom push notification
The Notification Service Extension is defined as a target in you project settings, hence it needs a unique identifier different than your app's id. It's recommended that you format the extension's id like so: App_Bundle_Id.NotificationServiceExtension
Bundle Identifiers are unrelated to the method calls, iOS will handle them for you. Whenever a device receives a push notification, the extension is called (if configured properly) so you can execute your logic.
I have found a way in which push notification works if we use standard objects of salesforce but I want to send push notification to custom objects.
I have two apps and want to send push notification from one app's custom object to another app's custom object.
Please help if there is a way to acheive this.
We have to use third party service like firebase or pushwoosh for this. Standard push notification will not work of salesforce.
I am working on an app which fetches student info from a server, like absences and events and grades. I have no access to the server, I only have the API.
I am asked to implement push notifications in the app, such that if a teacher marks a student absent, that student get a notification about that. I searched and found several approaches:
1- Background fetch: I tried using background fetch to check if the student logged in to the app was marked absent today, if yes, show a local notification. It worked when I simulated w background fetch, but never worked on the physical device.
2- I searched for using Apple Push Notification Service, and they all wanted me to build a server, and I dont know how to start. Can I build a server which pushes notifications to devices in a way facebook does it? That is, one user triggers a notification at another user, in other words: I dont want to use broadcast notifications.
3- Using third party, like backendless, firebase or any alternatives. Would that be a useful approach?
With Backendless your app (on the student side) can register itself to receive push notifications. This is done with an API call that registers the device on the servers provided by Backendless. Then you would build an additional application (could be a browser web app or a mobile app) for the teachers. The system allows to send targeted notifications, so when a student is marked as absent, you could use the API to deliver a push notification specifically to the student's device. Would be happy to discuss in detail, you can post your question to the Backendless support forum.
For my app I have designed Push service using Java APNS library.
Or You could use Microsoft Azure Mobile services to push a notifications to devices.
In my last version of my Application I used Appoxee to send push notification and in my current version, I wanted to switch to UrbanAirShip so I removed Appoxee from the code and integrated UrbanAirShip.
Now when I upgrade the app, I still receive the push notification from appoxee.
I want my old users (using old version of my app) to receive push notification from appoxee and new users (who is on my latest version) to receive only from UrbanAirShip. How to unsubscribe push notification from first vendor
You should be looking at Apple's documentation on how to unregister from the existing provider, i.e. by calling unregisterForRemoteNotifications on the UIApplication object.
After you've unregistered, you will have to call the registration for remote notification again and at this point pass in the details for Urban Airship.
From what I understand, the user shouldn't be prompted to approve again, it will just use the existing approval settings for the app.
I am creating iPhone app where I want to send notification to users who have my app. When admin login add some building, I want to send push notification. (not by going to push notification website and then sending manually)
Any idea how to get this done?
I am new to push notification.
For push notification., get register yourself here..
Urban Airship
Tutorial Link
This website is providing to send push notification for our app.
I've also implemented this in my app.
Enjoy. happy coding. Thanks