Hui Zhao

Results 254 comments of Hui Zhao

OK no problem @yazoonic Can you also do me a favor? Could you test with less sync expression in place, see if the crash happens? >DataStoreSyncExpression(Table10.classType, () => QueryPredicate.all), This...

Please follow this documentation: https://docs.amplify.aws/lib/datastore/setup-auth-rules/q/platform/flutter/#per-user--owner-based-data-access When you enable owner based auth, only the models that belong to the currently signed in user will be synced into local database.

Hum OK, changing auth to existing data in prod env is troublesome for sure.

Are you building the apk in release mode? @yazoonic

>before I wasnt .. but now I have the release mode on in build gradle and I just use the play button as debug... should I remove the settings for...

>I tired in physical device Google Pixel and Also in 2 different emulators. Strange! The crash happens in all these devices/emulators? >is it something related to my Auth flow... It's...

Hi @yazoonic sorry for the delayed response. No substantial update on my side, as I couldn't reproduce this crash so I'm pretty much blind on debugging this crash.

Same issue is reproducible in native Android app using amplify-android.

A workaround - ``` var resultTwo = await Amplify.DataStore.query(StringTypeModel.classType, where: StringTypeModel.VALUE.ne('one').or(StringTypeModel.VALUE.eq(null))); ```

SQLite value comparison doesn't count `null` is the root cause. It's an expected behavior in SQLite.