passepartoutvpn / tunnelkit

VPN client library for Apple platforms.
GNU General Public License v3.0
3 stars 1 forks source link

[OpenVPN] DataCount property is null. #287

Closed 0rangeFox closed 1 year ago

0rangeFox commented 1 year ago

Hey folks 👋, I'm getting this error where the property DataCount from OpenVPN.ProviderConfiguration is null when I'm connected into some server, I already looked at this issue (#254) and the problem looks is at "App Group entitlements" is incorrect or missing, but looks wasn't a fix for my case. Also tried this issue (#265) and get the property openVPNDataCount but still same thing. What exactly could be the problem? Whether any suggestion is always welcome. Thanks!

0rangeFox commented 1 year ago

Alright, I still can't get it to work, this time I did the following steps, cloned the repository and opened the Demo folder in Xcode, changed all the files where it contained com.algoritmico to pt.saphirex (entitlements, plist, etc...). But still it returns null, what could it be this time?

keeshux commented 1 year ago

I would suggest you try it in demo first, then proceed to do it in your code by comparison.

0rangeFox commented 1 year ago

I would suggest you try it in demo first, then proceed to do it in your code by comparison.

Did you read my last message? I just mentioned that I cloned the demo and only changed the "App Group" because my team can't use your "App Group" and so I changed it to not give authorization errors. But if you read the last message, how can I run the demo with your "App Group" without giving errors.

keeshux commented 1 year ago

You know, these things have little to do with code and are often about entitlements. You must double check any minor detail, both in the project and in your App ID on the Apple Developer portal. There’s no more help I can give you unfortunately.

What I can do is re-testing the Demo on my end to exclude any bug, because it’s been a while since I haven’t touched it. I’ll let you know.

keeshux commented 1 year ago

@0rangeFox I didn't even remember that the data count feature was optional in the tunnel provider. Check out the latest commit.

Cheers