My Flutter app is authenticating and storing data/retrieving data (thanks to help from Mark) through Backendless when run on the Android simulator (from Android Studio).
However, when run as a browser app (Chrome or Edge) the app crashes in the Backendless init call
static void initializeApp(BuildContext context) async {
await Backendless.initApp(
applicationId: appID,
iosApiKey: apiKeyiOS,
androidApiKey: apiKeyAndroid);
The debug info (below) seems to indicate a null safety issue in the Backendless sdk.dart lib with initApp … perhaps some thing with value in the android code is null in the browser code?
The (first 13) debug messages:
Error: Unexpected null value.
at Object.throw_ [as throw] (http://localhost:64092/dart_sdk.js:5061:11)
at Object.nullCheck (http://localhost:64092/dart_sdk.js:5388:30)
at initApp (http://localhost:64092/packages/backendless_sdk/backendless_sdk.dart.lib.js:5720:25)
at initApp.next ()
at runBody (http://localhost:64092/dart_sdk.js:38659:34)
at Object._async [as async] (http://localhost:64092/dart_sdk.js:38690:7)
at Function.initApp (http://localhost:64092/packages/backendless_sdk/backendless_sdk.dart.lib.js:5713:20)
at initializeApp (http://localhost:64092/packages/backendless_todo_starter/pages/todo_page.dart.lib.js:1358:43)
at initializeApp.next ()
at runBody (http://localhost:64092/dart_sdk.js:38659:34)
at Object._async [as async] (http://localhost:64092/dart_sdk.js:38690:7)
at Function.initializeApp (http://localhost:64092/packages/backendless_todo_starter/pages/todo_page.dart.lib.js:1357:20)