Purchases.getOfferings(); hangs after upgrading RevenueCat to latest - flutter

Here are the packages I have in my pubspec.yaml file.
cloud_firestore: ^2.5.3
firebase_core_web: ^1.1.0
cloud_firestore_web: ^2.4.3
firebase_core: ^1.7.0
firebase_auth: ^3.1.2
provider: ^6.0.1
firebase_messaging: ^10.0.8
firebase_crashlytics: ^2.2.2
firebase_analytics: ^8.3.3
purchases_flutter: ^3.0.0
I run everything in Flutter stable channel version 2.5.2.
I tried using flutter channel beta version 2.6.0-5.2.pre as well.
The iOS version of the phone is 15.0.1. And I run tests on Iphone 7 (physical device, not a simulator). XCode version is 13.0. MAC OS is Big Sur 11.6 (with M1 chip).
The app works perfectly fine on Android but it hangs at the start of the app when I call the following function:
Offerings rcOfferings;
rcOfferings = await Purchases.getOfferings();
And the getOfferings() function never returns.. It was working perfectly fine before..
During the update procedure, the only change I made is the following:
Remove the following: Purchases.identify(rcAppUserId);
And instead use: Purchases.logIn(rcAppUserId);
Is this a known issue? What can be potential reasons for the getOfferings() function never returning anything…? It hangs when this function is called and the app never starts…
ADDENDUM
I enabled logs and here is what I see:
[Purchases] - DEBUG: ℹ️ Debug logging enabled
[Purchases] - DEBUG: ℹ️ SDK Version - 3.12.3
[Purchases] - DEBUG: 👤 Initial App User ID - (null)
[Purchases] - DEBUG: ℹ️ Sending latest PurchaserInfo to delegate.
[Purchases] - DEBUG: ℹ️ Delegate set
[Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET /subscribers/1634905166007
[Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/1634905166
[Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/1634905166/offerings
[Purchases] - DEBUG: ℹ️ API request completed with status: GET /v1/subscribers/1634905166/offerings 304
[Purchases] - DEBUG: ℹ️ Requesting products from the store with identifiers: {(
"product_1",
"product_2",
"product_3",
"product_4",
"product_5",
"product_6"
)}
[Purchases] - DEBUG: ℹ️ API request completed with status: GET /v1/subscribers/1634905166007 304
[Purchases] - DEBUG: ℹ️ Serial request done: GET /subscribers/1634905166007, 0 requests left in the queue
flutter:
Init Platform State RevenueCat - DONE!
flutter:
Get offerings - RevenueCat
[tcp] tcp_output [C4.1:3] flags=[R.] seq=2740821213, ack=1928912997, win=4095 state=CLOSED rcv_nxt=1928912997, snd_una=2740821136
[BackgroundTask] Background Task 12 ("SKProductsRequest"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
flutter:
CALLING RevenueCat getRcOfferings() function now...
[Purchases] - DEBUG: ℹ️ No cached Offerings, fetching from network
[Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/1634905166/offerings
[Purchases] - DEBUG: ℹ️ API request completed with status: GET /v1/subscribers/1634905166/offerings 304
[tcp] tcp_output [C5.1:3] flags=[R.] seq=2802284821, ack=658575777, win=4103 state=CLOSED rcv_nxt=658575777, snd_una=2802284744
As seen above, it lists the products in the beginning (and I do not really understand in which step it does that).
The line saying “CALLING RevenueCat getRcOfferings() function now...” is the place where getOfferings() function is called and the app hangs there while waiting… When I say hangs, it keeps waiting for this async call to complete.
Hoping that this additional information will help to get some help...

There have been a few reports of folks running into this, like here: 
https://community.revenuecat.com/sdks-51/ios-15-xcode-13-rcpurchases-sharedpurchases-offeringswithcompletionblock-is-never-called-492
It seems like this is happening with older sandbox accounts, due to StoreKit’s SKProductsRequest just hanging. The RevenueCat team is currently looking into it to come up with solutions.
In the meantime, creating a new sandbox user has reportedly been working well for other RevenueCat users.
Could you give it a try?

Related

Failed to create push channel: 13006 Extended code: 0x800705b4

I'm having an issue with Flutter FCM web push notifications. Everything works perfectly fine in Chrome, but in Edge I get the following error:
Uncaught (in promise) Error: AbortError: Registration failed - push service error
at Object.createErrorWithStack (errors.dart:284:10)
at Function._throw (core_patch.dart:288:28)
at Function.throwWithStackTrace (errors.dart:108:5)
at async._AsyncCallbackEntry.new.callback (zone.dart:1413:11)
at Object._microtaskLoop (schedule_microtask.dart:40:11)
at _startMicrotaskLoop (schedule_microtask.dart:49:5)
at async_patch.dart:166:15
The issue appears to be intermittent. Sometimes it works and sometimes it doesn't. Killing Edge tasks/rebooting doesn't seem to help, but resetting network adapter - does help. The edge://push-internals shows following error:
Subscribe failed
Occurred: 3/29/2022, 12:50:38 PM PDT
Status: Failed to create push channel: 13006 Extended code: 0x800705b4
Server key: BDOU99+h67HcA6J...2xGpWwzjfAnG4=
Type: Service worker
origin: http://localhost:50000/
service-worker-registration-id: 2
The application is setup as described in
Flutter Fire Web setup and Usage.
Google search on Failed to create push channel: 13006 Extended code: 0x800705b4 returns no results, but is the key here. Anybody knows what that means?
Non-debug Edge browser log:
Connection status
Type: WinRT WNS client
Server: https://client.wns.windows.com/
State: Disconnected
Disconnected: 3/29/2022, 12:56:34 PM PDT
Disconnect reason: Connection error: 13018
Connection attempts: 0

hi when i want add package to project recived to error down

===== asynchronous gap ===========================
package:pub/src/entrypoint.dart 431:12 Entrypoint._get
===== asynchronous gap ===========================
package:pub/src/entrypoint.dart 265:7 Entrypoint.acquireDependencies
This is an unexpected error. Please run
dart pub --trace get --no-precompile
and include the logs in an issue on https://github.com/dart-lang/pub/issues/new
pub get failed (server unavailable) -- attempting retry 2 in 2 seconds...
HTTP error 403: Forbidden
package:pub/src/http.dart 229:5 _ThrowingClient.send
its happening because your network connection is not proper or the server is not allowed to your country, or something wrong with your flutter
here is some ways to fix that problem i know
1-
use a vpn or proxy (its showing cant connect to the server so try to change the IP)
2-
check this link if vpn method is not working - https://dart.dev/tools/pub/troubleshoot#pub-get-fails-from-behind-a-corporate-firewall
3 -
try to upgrade your flutter just by one command
flutter upgrade
4 -
if its not working try to clean by this command
flutter clean
5 -
if anything wont working try to reinstall flutter (not recommended )

rundeck :how to correct the configuration of rundeck to access via the browser

i have problem accessing rundeck
[2021-05-03T17:33:33,231] WARN beans.GenericTypeAwarePropertyDescriptor - Invalid JavaBean property 'exceptionMappings' being accessed! Ambiguous write methods found next to actually used [public void grails.plugin.springsecurity.web.authentication.AjaxAwareAuthenticationFailureHandler.setExceptionMappings(java.util.List)]: [public void org.springframework.security.web.authentication.ExceptionMappingAuthenticationFailureHandler.setExceptionMappings(java.util.Map)]
[2021-05-03T17:33:41,756] INFO rundeckapp.BootStrap - Starting Rundeck 3.3.10-20210301 (2021-03-02) ...
[2021-05-03T17:33:41,757] INFO rundeckapp.BootStrap - using rdeck.base config property: /var/lib/rundeck
[2021-05-03T17:33:41,768] INFO rundeckapp.BootStrap - loaded configuration: /etc/rundeck/framework.properties
[2021-05-03T17:33:41,805] INFO rundeckapp.BootStrap - RSS feeds disabled
[2021-05-03T17:33:41,806] INFO rundeckapp.BootStrap - Using jaas authentication
[2021-05-03T17:33:41,811] INFO rundeckapp.BootStrap - Preauthentication is disabled
[2021-05-03T17:33:41,918] INFO rundeckapp.BootStrap - Rundeck is ACTIVE: executions can be run.
[2021-05-03T17:33:42,283] WARN rundeckapp.BootStrap - [Development Mode] Usage of H2 database is recommended only for development and testing
[2021-05-03T17:33:42,590] INFO rundeckapp.BootStrap - Rundeck startup finished in 945ms
[2021-05-03T17:33:42,877] INFO rundeckapp.Application - Started Application in 32.801 seconds (JVM running for 35.608)
Grails application running at http://xxx.xxx.xxx.xxx:4440 in environment: production
Session terminated, killing shell...[2021-05-04T10:20:46,596] INFO rundeckapp.BootStrap - Rundeck Shutdown detected
...killed.
can you help me please
by the way I have installed a vm under redhat
then I installed rundeck RPM
and from my physical machine when I do http: // rundecknode_ip: 4440
it returns me on the browser error 113 no route to host and on examination of the logs I have what I have posted above
when i do systemctl status rundeck it is active running

Analysis crash info about the Flutter release app

How to get useful info about the crash in the released app created by Flutter?
In the Firebase Crashlytics section can't show where the dart code crashed.
I found App.framework and App.frameword.DSYM would be created when Archive production app.
After run command below:
dwarfdump --arch arm64 ./App.frameword.DSYM >> ./xxx-dart-symbol-map.log
I found some useful info in the log file, something like this:
0x0006552f: DW_TAG_subprogram
DW_AT_abstract_origin (0x0000b738 "CustomWidget.getCardFromBox")
DW_AT_low_pc (0x00000000002806e0)
DW_AT_high_pc (0x000000000028121c)
0x00065544: DW_TAG_inlined_subroutine
DW_AT_abstract_origin (0x0000009c "_GrowableList.add")
DW_AT_low_pc (0x00000000002808c8)
DW_AT_high_pc (0x0000000000280944)
DW_AT_call_file ("package:app/screens/top/widget/custom_widget.dart")
DW_AT_call_line (169)
I think 0x0006552f is a ??? address of the CustomWidget.getCardFromBox method. But the Firebase doesn't show any information like above.
Bitcode isn't used.

kaa data collection doesn't retrieve data mongodb

I installed kaa iot server manually on ubuntu 16.04, and use data collection sample to test how it works.
the code run without any errors, but when I run these commands below nothing happens:
mongo kaa
db.logs_$my_app_token$.find()
I even comment out bind_ip of mongodb.conf and restart mongodb, zookeeper and kaa-node services, but nothings changed.
I also regenerated SDK and rebuild project but that wouldn't help either.
finally this is the kaa log:
2018-06-05 15:03:53,899 [Thread-3] TRACE
o.k.k.s.c.s.l.DynamicLoadManager - DynamicLoadManager recalculate() got 0 redirection rules
2018-06-05 15:03:59,472 [EPS-core-dispatcher-6] DEBUG
o.k.k.s.o.s.a.a.c.OperationsServerActor - Received: org.kaaproject.kaa.server.operations.service.akka.messages.core.stats.StatusRequestMessage#30d61bb1
2018-06-05 15:03:59,472 [EPS-core-dispatcher-6] DEBUG o.k.k.s.o.s.a.a.c.OperationsServerActor - [14fc1a87-8b34-47f6-8f39-d91aff7bfff7] Processing status request
2018-06-05 15:03:59,475 [pool-5-thread-1] INFO o.k.k.s.o.s.l.DefaultLoadBalancingService - Updated load info: {"endpointCount": 0, "loadAverage": 0.02}
2018-06-05 15:03:59,477 [Curator-PathChildrenCache-0] INFO o.k.k.s.c.s.l.DynamicLoadManager - Operations server [-1835393002][localhost:9090] updated
2018-06-05 15:03:59,477 [Curator-PathChildrenCache-4] DEBUG o.k.k.s.o.s.c.DefaultClusterService - Update of node [localhost:9090:1528181889050]-[{"endpointCount": 0, "loadAverage": 0.02}] is pushed to resolver org.kaaproject.kaa.server.hash.ConsistentHashResolver#1d0276a4
2018-06-05 15:04:03,899 [Thread-3] INFO o.k.k.s.c.s.l.LoadDistributionService - Load distribution service recalculation started...
2018-06-05 15:04:03,899 [Thread-3] INFO o.k.k.s.c.s.l.DynamicLoadManager - DynamicLoadManager recalculate() started... lastBootstrapServersUpdateFailed false
2018-06-05 15:04:03,899 [Thread-3] DEBUG o.k.k.s.c.s.l.d.EndpointCountRebalancer - No rebalancing in standalone mode
2018-06-05 15:04:03,899 [Thread-3] TRACE o.k.k.s.c.s.l.DynamicLoadManager - DynamicLoadManager recalculate() got 0 redirection rules
thank you for your help to fix this problem...
After lots of searching and checking, I finally found it!!!
there are multiple reason that this would happen:
if you are using Kaa Sanddbox make sure that you set your network setting into bridge (not NAT).
check your iptables and find out if these ports are open: 9888,9889,9997,9999.
if you are using virtual machine as your server, make sure that hosts firewall system doesn't block the ports.(This is what happened to me...)