iOS Question Notification Error

Nizze

Active Member
Licensed User
Longtime User
Hi

When i play with the sample codefor Notification i get an error in this line and app crashes.
Its this line the app crashes

no.RunMethod("completeFetch:", Array(0))

B4X:
                        If IndexNumberOld <> IndexNumberNew Then
                           IndexNumberOld = Job.GetString
                           If ln.IsInitialized = False Then
                           ln.Initialize(DateTime.Now)
                           ln.AlertBody = IndexNumberNew
                           ln.PlaySound = True
                           ln.IconBadgeNumber = 1
                           ln.Register
                            App.ApplicationIconBadgeNumber=1
                    
                           Dim no As NativeObject = App
                           no = no.GetField("delegate")
                           no.RunMethod("completeFetch:", Array(0))
                       End If


In the log i get some stuff
Application_Start
Application_Active

SignalHandler 11
Error occurred on line: 145 (Main)
Signal - 11
Stack Trace: (
"0 Announcer SignalHandler + 112",
"1 libsystem_platform.dylib 0x1cc70251 _sigtramp + 16",
"2 CoreFoundation <redacted> + 68",
"3 CoreFoundation <redacted> + 68",
"4 CoreFoundation <redacted> + 300",
"5 Announcer +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1784",
"6 Announcer -[B4INativeObject RunMethod::] + 158",
"7 CoreFoundation <redacted> + 68",
"8 CoreFoundation <redacted> + 300",
"9 Announcer +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1784"
)


Can someone tell me what it means ?

Br

Nizze
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…