Marco Maria Vilucchi Active Member Licensed User Longtime User Jul 29, 2017 #1 Hi, I found a link that explanes how to create a PHP procedure to send Push Notification to a IOS iphone. The link is: http://www.francescoficetola.it/201...-e-ricevere-le-notifiche-push-in-una-app-ios/ This page said that I need to ask the authorization to send notification and I must put on my App, in AppDelegate, a line of code for Consent and App Record to push notifications: [[UIApplication sharedApplication] registerForRemoteNotificationTypesUIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; It asks the user if he want notification Which is the syntax in B4I? Where can i put this code? Where is AppDelegate in a B4I App? Are there examples of app with push notification? Thans Marco
Hi, I found a link that explanes how to create a PHP procedure to send Push Notification to a IOS iphone. The link is: http://www.francescoficetola.it/201...-e-ricevere-le-notifiche-push-in-una-app-ios/ This page said that I need to ask the authorization to send notification and I must put on my App, in AppDelegate, a line of code for Consent and App Record to push notifications: [[UIApplication sharedApplication] registerForRemoteNotificationTypesUIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; It asks the user if he want notification Which is the syntax in B4I? Where can i put this code? Where is AppDelegate in a B4I App? Are there examples of app with push notification? Thans Marco
JanPRO Well-Known Member Licensed User Longtime User Jul 29, 2017 #2 Hi, from my experince using PHP for sending push notifications it not the best idea, one big problem: repeatedly open and close connections can been seen as a DDos attack. I recommend you to use Firebase, it's really simple to set up and very reliable. Firebase has also a Http Api, so it should be simple to send request from a PHP script. Marco Maria Vilucchi said: Which is the syntax in B4I? Click to expand... Go over this tutorial, everything is explained there. https://www.b4x.com/android/forum/threads/push-notifications.48562/ Jan Upvote 0
Hi, from my experince using PHP for sending push notifications it not the best idea, one big problem: repeatedly open and close connections can been seen as a DDos attack. I recommend you to use Firebase, it's really simple to set up and very reliable. Firebase has also a Http Api, so it should be simple to send request from a PHP script. Marco Maria Vilucchi said: Which is the syntax in B4I? Click to expand... Go over this tutorial, everything is explained there. https://www.b4x.com/android/forum/threads/push-notifications.48562/ Jan
Marco Maria Vilucchi Active Member Licensed User Longtime User Jul 29, 2017 #3 OK I'm Trying. But in the Tutorial Erel saysabout to Create a provision file with the new App ID: The last step is done in the IDE by clicking on Tools - Build Server - Create Push Keystore. I have B4I 3.6 and I have: Tools - Build Server - Create Push store - B4X Push Server or Tools - Build Server - Create Push store - Firebase Service Both have an error This is my keys folder content: What may I do? (When solved it i can study Firebse....) Thans Marco Upvote 0
OK I'm Trying. But in the Tutorial Erel saysabout to Create a provision file with the new App ID: The last step is done in the IDE by clicking on Tools - Build Server - Create Push Keystore. I have B4I 3.6 and I have: Tools - Build Server - Create Push store - B4X Push Server or Tools - Build Server - Create Push store - Firebase Service Both have an error This is my keys folder content: What may I do? (When solved it i can study Firebse....) Thans Marco
JanPRO Well-Known Member Licensed User Longtime User Jul 29, 2017 #4 While creating the push store, you have to move the file aps.cer or aps_development (it depends on whether you want to build it for development or release) to another folder. Jan Upvote 0
While creating the push store, you have to move the file aps.cer or aps_development (it depends on whether you want to build it for development or release) to another folder. Jan
Erel B4X founder Staff member Licensed User Longtime User Jul 30, 2017 #5 Tip: only use distribution certificates. There is no reason to use development certificates. Upvote 0
Marco Maria Vilucchi Active Member Licensed User Longtime User Jul 30, 2017 #6 I created a Distribution aps certificate and I entered them into Project Attributes Region of App: #ProvisionFile: ServiceH24Dist.mobileprovision #CertificateFile: aps.cer When i compile app I have this: How can I use aps certificate? Thans Marco Upvote 0
I created a Distribution aps certificate and I entered them into Project Attributes Region of App: #ProvisionFile: ServiceH24Dist.mobileprovision #CertificateFile: aps.cer When i compile app I have this: How can I use aps certificate? Thans Marco
Erel B4X founder Staff member Licensed User Longtime User Jul 31, 2017 #7 aps certificate is only used to create the push key. You should sign your app with the distribution certificate. Upvote 0
aps certificate is only used to create the push key. You should sign your app with the distribution certificate.
Marco Maria Vilucchi Active Member Licensed User Longtime User Jul 31, 2017 #8 Sorry, but i don't know what's happening. as a development provisioning profile: I tryied also with a distribution provisioning profile but htn i can only download the apk file... Upvote 0
Sorry, but i don't know what's happening. as a development provisioning profile: I tryied also with a distribution provisioning profile but htn i can only download the apk file...
Erel B4X founder Staff member Licensed User Longtime User Jul 31, 2017 #9 You need to create a distribution provision profile (ad hoc). Upvote 0
Marco Maria Vilucchi Active Member Licensed User Longtime User Jul 31, 2017 #10 Sorry: what means ad Hoc. I used This: and if I use Run (F5) I have this: if I use Build Release App I have this: Upvote 0
Sorry: what means ad Hoc. I used This: and if I use Run (F5) I have this: if I use Build Release App I have this:
Erel B4X founder Staff member Licensed User Longtime User Jul 31, 2017 #11 The provision profile used is wrong. It is a store provision instead of an ad hoc. Create a new one. You can choose which file will be used with the #ProvisionFile attribute. Upvote 0
The provision profile used is wrong. It is a store provision instead of an ad hoc. Create a new one. You can choose which file will be used with the #ProvisionFile attribute.