iOS Question Error when trying to provide ratings from within my app

jo1234

Active Member
Licensed User
Longtime User
Hi,

I'm trying to use this code to allow users to provide ratings from within my app.

B4X:
If App.OSVersion >= 10.3 Then
     Dim no As NativeObject
     no.Initialize("SKStoreReviewController").RunMethod("requestReview", Null)
End If
https://www.b4x.com/android/forum/t...hin-your-app-ios-10-3-beta.75585/#post-499900


However, I get an error on iOS12:

Error in line of "no.Initialize("SKStoreReviewController").RunMethod("requestReview", Null)"
Object was not initialized (NSObject)
Stack Trace: (
CoreFoundation <redacted> + 252
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> + 0
AppName 0x0000000100ce80fc -[B4IObjectWrapper object] + 152
AppName 0x0000000100d07a94 -[B4INativeObject RunMethod::] + 124
AppName 0x0000000100ccad9c -[b4i_scanner _msgboxrateapp_click:] + 1752
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
AppName 0x0000000100cee9a0 +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1624
AppName 0x0000000100d54548 -[B4IShell runMethod:] + 448
AppName 0x0000000100d530c0 -[B4IShell raiseEventImpl:method:args::] + 1640
AppName 0x0000000100d568b4 -[B4IShellBI raiseEvent:event:params:] + 1372
AppName 0x0000000100cedbac __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
libdispatch.dylib <redacted> + 24
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 1068
CoreFoundation <redacted> + 12
CoreFoundation <redacted> + 1964
CoreFoundation CFRunLoopRunSpecific + 436
GraphicsServices GSEventRunModal + 100
UIKitCore UIApplicationMain + 212
AppName 0x0000000100c9fcb0 main + 124
libdyld.dylib <redacted> + 4
)​

How can I fix this?

Thanks a lot,
Johannes
 

jo1234

Active Member
Licensed User
Longtime User
Yes, in debug mode on iPhone 6.
It worked a week ago, now I tested again and got the error.
 
Upvote 0
Top