iOS Tutorial Push notifications

tufanv

Expert
Licensed User
Longtime User
You don't need to change the password. You do need to create a new keystore file with the non-development APN certificate.

But to create a new push keystore with non development cerificate i have to change my private sign key or i can not build the ipa and if i change it dont i need to change to password to new one in config.txt ?

Another question: to create a new keystore file with non decelopment apn cert, i have to just change the build location to store files jist like creating a build for distrbution and create push keystore with those settings? ( provision and cert for distrubition which also contains the distrubition apn cert ) ?
 

tufanv

Expert
Licensed User
Longtime User
I'm not sure that I understand the issue. You can use the same csr file for as many apps as you like.

You can also use a different csr file if you prefer. Just change the keys folder in the IDE.

What I mean is , For development version of my app , i can successfuly send push notifications. Now i will create a production build to put to apstore. But my csr files are not same so i use different private sign keys for development and distrubution.

I created the push keystore file with development prov. & cert. and with development password: lets say pass1 . In config.txt of pushserver I used the pass1 for push keystore password and the push.keystore file generated with development files (development cert. and development provisining file ). Works perfect.

Now i want to switch to distrbution. are these correct :
1) Change the location to keys folder to distrubiton folder ( where certificate and prov. for appstore build exists)
2) change private sign key ( i have to change because i used different csrs )
3) create another push.keystore file .
4) change the config.txt to new privatge sign key
5) change the push.keystore on my server to new push.keystore (which i created for distrubiton )
6) Restart the server

With these steps, my server will be running for the distribution build without problems ?
 

tufanv

Expert
Licensed User
Longtime User
Why are the csr files not the same?
I dont know. One of them is 968 bayts other one is 960 bytes. I followed the tutorial when i first purchased b4i i dont know why they are diiferent or remember =)
 

le_toubib

Active Member
Licensed User
Longtime User
i need the server to be hosted (and dont have a vps so cant use b4j) , i googled for a php script that acts as a push server and it requires the apns.pem file instead of the push.keystore file
 

Juan Marrero

Active Member
Licensed User
Longtime User
Do I have to create a new provisionprofile for using push notification? Or can I use the same provisionprofile I have (not default, mine is DevelPRUSB.mobileprovision) which says that it have Push Notification enabled?
 

Juan Marrero

Active Member
Licensed User
Longtime User
That means that if I created a provisionprofile like this "com.something.*" but when I added the app to itunesconnect and forced me to use "com.something.myapp" it will not work because of the already wildcard provision profile created?

EDIT: I created a new App ID (non-wildcard), a new Certificate and a new ProvisionProfile and I can't get it to work.
 
Last edited:

marcick

Well-Known Member
Licensed User
Longtime User
All files from the "special folder" are copied to the main bundle folder (where the sounds should be). You can see it in the build server inside the project folder.

I'm trying to obtain a custom sound for a push notification.
I have put in the special folder the file "test.mp3" and compiling the app I see it in the build server.
Then, in B4J pushserver, Sub SendMessageTo, IOSPush module, I have changed from

B4X:
If msg.sound then m.put("sound", "default")

to

B4X:
If msg.sound then m.put("sound", "test.mp3")

But it doesn't work

What's wrong ?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…