hydrasdk-demo-android
hydrasdk-demo-android copied to clipboard
Couldn't connect after initializing SDK with premium carrierID
Good day.
val id = if (isSub)
BuildConfig.PREM_CARRIER_ID
else
BuildConfig.BASE_CARRIER_ID
log("rem id $id")
initSdk(id)
initHydraSdk()
if (isLogin())
logOut()
loginToVpn()
Everything working fine until user buy the subscription and after payment, I am initializing SDK again, but it is giving an exception - Canceled VPN stop
Another interesting point is when I initializing with premium carrierID in debug mode, everything working fine, but after releasing app it is not possible to connect VPN with premium carrierID, only limited carrierID works.
- what is the reason to have different carrier for premium user?
- You can initialize 2 instances of sdk with UnifiedSDK.getInstance(name), with different carriers
- You have canceled VPN stop in what call?
- are you stopping vpn before reinitialization?
- please share logs (adb logcat without any filter)
- because origin carrier ID gives 50 daily limit, premiumCarrierID gives unlimited connection
- Even I have tried to clear instances with UnifiedSdk.clearInstances() before initializing second carrier ID
- While connecting to VPN.
- No
- what carrier gives you unlimited connection?
- You should do this when in idle state - so stop VPN before reinitialising the sdk
- yes with another carrier ID, there wouldn't have daily limit ( 50mb )
- After user bought subscribtion, I have disconnecting,stoping and logOut from SDK, then reInitialize SDK with new carrier ID, but second time it is not connecting...
I have determined that, your SDK initializing our carrierID, but this carrier ID must work without any limit, namely RemainingTraffic.isUnlimited must response us true, but it is not responsing.
instead it is calculating remaining traffic (onTrafficUpdate)
Another interesting aspect is that, in debug mode, everything works fine, only in release it is causing such problems
Traffic is calculating and updating locally - its not related to traffic limits or carrier - its just local information. Some time ago we've updated carriers to have daily limit - to have unlimited users you have to integrate subscription reporting with API and dashboard. Maybe in release builds your code is "optimized" in any wrong case
Is that possible? What if working at DEBUG doesn’t work at RELEASE?
can you create simple app that reproduces your issue and share with me? or change this demo app to reproduce the issue?