Comments (10)
Hi, @digiborimusik. I couldn't reproduce the case neither on iOS nor on Android. Could you provide more details:
- Which version of the qonversion-flutter-sdk do you use? The sdk provides cache since 2.3.0 version.
- Platform (iOS or Android)
- The detailed description of the issue. Once Qonversion was successfully launched on the device, sdk caches all data. But if there was an error on the first launch, you may encounter the error as there is no cache yet (only during the first launch).
- Also please provide your code where you call the
checkPermissions()
method and use its result.
You may contact me via email if you want :[email protected]
from flutter-sdk.
Hi. Its happens on android and ios, every time if i disable network and start app. After start app, the method Qonversion.launch return error D/Qonversion( 9734): Thread - main initRequest - failure - QonversionError: {code=NetworkConnectionFailed, description=There was a network issue. Please make sure that the Internet connection is available on the device, additionalMessage=Unable to resolve host "api.qonversion.io": No address associated with hostname}
And then Qonversion.checkPersmission() dont answer, breakpoint just stop on await. final Map<String, QPermission> permissions = await Qonversion.checkPermissions();
Maybe its not a bug, but docs says
Qonversion SDK caches all required data on products, offerings, and permissions. The data is still immediately available in cases the internet connection is lost or any server-side delays.
from flutter-sdk.
qonversion_flutter: ^3.2.1
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.2.0, on Microsoft Windows [Version 10.0.17763.1999], locale ru-UA)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] VS Code (version 1.57.1)
[√] Connected device (2 available)
from flutter-sdk.
The launch
method always sends the request when starting an application (or the method is called). If an error occurs, the launch method will only report it. But you can continue to use the Qonversion methods further (retrieve offerings, permissions, products) since they will use data from the cache.
Please try to call lauch()
inside the try/catch block. It will handle the error when it occurs :
Qonversion.launch(
'your_project_key',
isObserveMode: false,
);
try {
final Map<String, QPermission> permissions =
await Qonversion.checkPermissions();
} catch (e) {
print(e);
}
P.S. It is a normal behaviour in your logs. We only report that it was not possible to connect to Qonversion. But you still can call our methods 🙂
from flutter-sdk.
No, i do that you say. After launch is fail, the future checkPermissions() dont complete. No error, no complete, its just wait.
Untitled.mp4
from flutter-sdk.
Which version of the qonversion-flutter-sdk do you use? The sdk provides cache since 2.3.0 version.
I use 2.2.0. maybe that is answer
from flutter-sdk.
Have you tried with the newer sdk version?
from flutter-sdk.
No, I can't switch to the dev channel on this project.
from flutter-sdk.
@digiborimusik
Sorry. I think we misunderstood each other 😀
You are using qonversion-sdk 3.2.1, aren't you? If yes, everything should work independently on the flutter channel version.
Let's move further. I couldn't find any requests from your project. It seems to me that you run your app only without internet-connection. Therefore your device doesn't have cache and checkPermissions() doesn't work.
Also I suggest you test from scratch:
- First time run your application with the internet connection. Make sure everything works correctly. Qonversion sdk will save into cache all data.
- Second time run the app without the Internet connection and see the result.
from flutter-sdk.
Hi @digiborimusik
The code from the video seems fine to me. But I don't see the code snippet for launch()
. Could you please share with me if you still have the issue?
from flutter-sdk.
Related Issues (20)
- My app keeps crashing in. release mode HOT 6
- Expose presentCodeRedemptionSheet HOT 4
- Can't write unit test against Qonversion HOT 3
- Clash between Qonversion SDK and In_app_purchase package HOT 3
- Permissions is empty! HOT 1
- Release Apk Build Failed HOT 4
- MacOS - [MissingPluginException(No implementation found for method listen on channel qonversion_flutter_promo_purchases)] HOT 1
- MacOS - MissingPluginException(No implementation found for method purchaseProduct on channel qonversion_flutter_sdk) HOT 2
- QOnversion failures not throwing HOT 6
- Fatal Exception: NSInvalidUnarchiveOperationException on iOS HOT 2
- iOS integration Error HOT 2
- ANR com.qonversion.android.sdk.FacebookAttribution.getAttributionId Input dispatching timed out HOT 5
- BUG: call to userInfo() with null "identityId" throws exception (user.g.dart:12:24) - v5.1.0 HOT 3
- I am getting this error for calling collectApplesearchAds method HOT 2
- Getting "A data connection is not currently allowed" error on iOS HOT 9
- UIPopoverPresentationController should have a non-nil sourceView or barButtonItem set before the presentation occurs. HOT 6
- Restore String Bug after Upgrading Conversion Version HOT 5
- Mapping Error During Restore on iOS HOT 7
- can't even flutter pub get this code. update it. HOT 3
- JSON Parsing Error with RemoteConfig HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-sdk.