I have tried this again 3 more times, from scratch each time, I have also tried creating a brand new firebase project in the console, and updated my iOS test phone to the latest 11.4
I have tried on Wifi, and with a sim card in.
I still get the same thing - if the application is in the foreground, i get the message box with the push notification, if the application is in the background, or not running I do not get anything until I next open the application.
Also just for a laugh I tried it on an ipod touch, same thing.
I am pretty sure I am not missing a step, so could someone please humor me, and try following the tutorial from scratch again and see if they get the same result, because I am now at that brick wall that I can't overcome.
here is the code I copied and pasted, and then changed my provision profile to the one I am using.
#Entitlement: <key>aps-environment</key><string>production</string>
'use the distribution certificate
#CertificateFile: ios_distribution.cer
#ApplicationLabel: Push Test again
'use the provision profile that goes with the explicit App Id
#ProvisionFile: pushtest.mobileprovision
Sub Process_Globals
Public App As Application
Public NavControl As NavigationController
Private Page1 As Page
Private analytics As FirebaseAnalytics
Private fm As FirebaseMessaging
End Sub
Private Sub Application_Start (Nav As NavigationController)
analytics.Initialize
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.Color = Colors.White
NavControl.ShowPage(Page1)
App.RegisterUserNotifications(True, True, True)
App.RegisterForRemoteNotifications
fm.Initialize("fm")
End Sub
Private Sub fm_FCMConnected
Log("FCMConnected")
'here we can subscribe and unsubscribe from topics
fm.SubscribeToTopic("ios_general") 'add ios_ prefix to all topics
End Sub
Private Sub Application_RemoteNotification (Message As Map, CompletionHandler As CompletionHandler)
Log($"Message arrived: ${Message}"$)
Msgbox(Message, "Push message!")
CompletionHandler.Complete
End Sub
Private Sub Application_Active
fm.FCMConnect 'should be called from Application_Active
End Sub
Private Sub Application_Background
fm.FCMDisconnect 'should be called from Application_Background
End Sub
Sub Application_PushToken (Success As Boolean, Token() As Byte)
Log($"PushToken: ${Success}"$)
Log(LastException)
End Sub
I appear to be really stuck with this