iOS Question what the error in Application_RemoteNotification

aboalwaleed

Member
Licensed User
Longtime User
Remote notification: (read only map) {
body = "mnt is ok";
from = "/topics/055555";
title = washco;
}
null
Error occurred on line: 376 (Main)
Target is null. Method called: Get:
Stack Trace: (
CoreFoundation <redacted> + 148
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> + 0
Washco +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 192
Washco -[B4IShell runMethod:] + 448
Washco -[B4IShell raiseEventImpl:method:args::] + 1260
Washco -[B4IShellBI raiseEvent:event:params:] + 1408
Washco __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
libdispatch.dylib <redacted> + 24
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 1016
CoreFoundation <redacted> + 12
CoreFoundation <redacted> + 2012
CoreFoundation CFRunLoopRunSpecific + 436
GraphicsServices GSEventRunModal + 100
UIKit UIApplicationMain + 236
Washco main + 124
libdyld.dylib <redacted> + 4
)



B4X:
Private Sub Application_RemoteNotification (Message As Map, CompletionHandler As CompletionHandler)
    Log("Remote notification: " & Message)
    Dim m As Map = Message.Get("aps")
    Log(m)
    Log(m.Get("alert"))
    Msgbox("remote: " & Message, "")
    
    
    
    
End Sub
 
Top