When I updated the pushSDK to the version "5.3.0.301", I found AGConnectServicesConfig
was deprecated. I want to know what is the substitute for it. How can I get app_id in the new version?
I used to get app_id like this:
String appId = AGConnectServicesConfig.fromContext(context).getString("client/app_id");
How can I get it when I update?
I have found the source code, but I can't find any substitute for this.
Try this
String appId = new AGConnectOptionsBuilder().build(MainActivity.this).getString("client/app_id");
For more details,check Docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With