PushNotification

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ValentinWalik
Posts: 1
Joined: Fri Apr 13, 2018 7:08 am

PushNotification

Post by ValentinWalik » Fri Apr 13, 2018 7:15 am

Hello,

I have a big problem, my stand-alone app do not recognise the PushNotification function.
There´s no message on first app start to allow the notifications.
All my Certificates an Provisioning Profiles seems to be correct, I have tested ist via terminal.

This is the code in my Stack:

Code: Select all

on pushNotificationReceived tMessage
   answer "Push Notification Message:" && quote & tMessage & quote with "Okay"
end pushNotificationReceived

on pushNotificationRegistered tSignature
   answer "Registered for Push Notification:" && quote & tSignature & quote with "Kay"
end pushNotificationRegistered

on pushNotificationRegistrationError tMessage
   answer "Failed to Register for Push Notification:" && quote \
         & tMessage & quote with "error"
end pushNotificationRegistrationError


on pushNotificationRegistered
   get mobileGetDeviceToken()
end pushNotificationRegistered
What is wrong, can somebody please help me.

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: PushNotification

Post by Mikey » Fri Apr 13, 2018 5:27 pm

Push isn't always easy to get started, so
Let's start with
* You're building for iOS, right?
* Are you testing on the simulator or a physical device? (Simulator won't work)
* How did you obtain the push ID to use to send the message?
* Are you sure this is the first time you have tried to install this app on the device? Have you re-used the app ID from another app?
* In your Settings -> Notifications, what is listed for this app?

Post Reply

Return to “iOS Deployment”