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 Code Snippet Get iPhone Model
B4i Question Get iPhone Model
B4i Question How To run This code
  1. Rabbit

    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 ?


    Code:
    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!
     
  2. Erel

    Erel Administrator Staff Member Licensed User

Loading...
  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