iOS Tutorial Can I use GCM on IOS

Discussion in 'iOS Tutorials' started by Rabbit, Feb 22, 2015.

Similar threads

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

    Rabbit Member Licensed User


    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 ?

    Sub HandleRegistrationResult(Intent As Intent)

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

    And for "intent" which library is equivalent b4i ?

  2. Erel

    Erel Administrator Staff Member Licensed User

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice