iOS Tutorial Can I use GCM on IOS

Similar threads

B4i Code Snippet Get iPhone Model
B4i Question Failure to receive Push Notifications
B4i Question httpJob
B4i Question Get iPhone Model
B4i Question How To run This code

Rabbit

Member
Licensed User
Hi,

Can I use the GCM on the b4i?

for example in B4A i have the code below, can I use the same concept on the b4i to make by the end exchanging the messages Android<=>IOS ?


B4X:
Sub HandleRegistrationResult(Intent As Intent)

        DeviceName = "test"
        If Intent.HasExtra("error") Then
        Else If Intent.HasExtra("unregistered") Then
            Dim j As HttpJob
            j.Initialize("UnregisterTask", Me)      
            j.Download2(BoardUrl, Array As String("device_password", DeviceBoardPassword ,"name", DeviceName, "id", ""))
        Else If Intent.HasExtra("registration_id") Then
            Dim rid As String
            rid = Intent.GetExtra("registration_id")
            Dim j As HttpJob
            j.Initialize("RegisterTask", Me)  
            j.Download2(BoardUrl, Array As String("device_password", DeviceBoardPassword, "name", DeviceName, "id", rid))
          
    
          
        End If
    End If  
End Sub

And for "intent" which library is equivalent b4i ?

Thanks!
 
Top