iOS Question FirebaseNotifications -again

f0raster0

Well-Known Member
Licensed User
Longtime User
Hey guys,
We're trying to make the push notifications in IOS to work (Android working OK at the moment)

First, I'd like to ask if somebody can check the steps below..(I have deleted all certificates and create d new ones many times)

Apple:
1) go to identifiers-> App IDs then select the App -> edit and click push notifications.
( ID: com.xx.yy7)

1.1) in Production SSL certificates create a new (production) certificate using the CSR file (CSR is the file been created when we created the key, it is the same in developing and production)

( Production SSL Certificate
Name: Apple Push Services: com.xx.yy7
Type: Apple Push Services
Expires: Dec 14, 2018)

1.2) create and download the file: aps.cer

2) Create a provision profile.
then download the file: pushDevelopment.mobileprovision

B4i
3) in B4i-> tools -> build server -> create firebaseservice., that step creates a file called fire_base_push.p12

Firebaseconsole:
4) go to firebase console, upload the file firebase_push.p12.
APNs Certificates->Production APNs certificate

questions:
After all these steps done i s there any "easy" way to test if the App is receiving the push messages or not?

Notes:
B4i version: 4.4, hosted builder.
Keys and certificates: C:\keys\keys-push
ref: https://www.b4x.com/android/forum/t...h-messages-server-not-required.68645/#content
 

Attachments

  • push-provisioninfProfiles-notifications-apple.jpg
    push-provisioninfProfiles-notifications-apple.jpg
    73.4 KB · Views: 175
  • push-certificate-notifications-apple.jpg
    push-certificate-notifications-apple.jpg
    79.5 KB · Views: 186
  • firebasecolsole.jpg
    firebasecolsole.jpg
    68.9 KB · Views: 178
  • 1.jpg
    1.jpg
    42.9 KB · Views: 184
  • 2.jpg
    2.jpg
    93.7 KB · Views: 185
Last edited:

f0raster0

Well-Known Member
Licensed User
Longtime User
ok from picture: 2.jpg (not green in development) and this link: https://www.b4x.com/android/forum/t...causes-not-install-problem.71858/#post-456853
maybe It's wrong here:
B4X:
    #Entitlement: <key>aps-environment</key><string>production</string>
    '#Entitlement: <key>aps-environment</key><string>development</string>
    'use the distribution certificate
    ''distribution
    '#CertificateFile: ios_distribution.cer
    '#CertificateFile: ios_development.cer
    #CertificateFile: ios_development.cer
    'use the provision profile that goes with the explicit App Id
    #ProvisionFile: pushDevelopment.mobileprovision

Use the B4J program to send a message.
Do I have to add only the server key?
B4X:
Sub Process_Globals
    Private const API_KEY As String = "AAAAxxxxxxxxxx"
End Sub

Sub AppStart (Args() As String)
    SendMessage("ios_general", "title", "body")
    StartMessageLoop
End Sub
 
Last edited:
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
when using B4J I got:
[jobname=fcm, success=true, username=
, password=, errormessage=, target=class b4j.example.main
, taskid=1, req=anywheresoftware.b4h.okhttp.OkHttpClientWrapper$OkHttpRequest@6073f712, tag=java.lang.Object@43556938
, httputils2service=null]
{"message_id":8699629309644687908}

What does it mean?
 
Upvote 0
Top