New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getConnectedSSID() Not returning SSID when building IPA for distribution #53

Closed
GiancarloGomez opened this Issue Sep 25, 2018 · 6 comments

Comments

Projects
None yet
4 participants
@GiancarloGomez

GiancarloGomez commented Sep 25, 2018

Description

When I debug my Ionic App I can get my SSID when I call getConnectedSSID() but in the IPA for release it never returns a value. Always fires the catch() and returns Not Available.

Steps to Reproduce

Build for prod thru CLI or Archive in xCode and export IPA and install on connected device via device window.

Expected behavior:
Get Connected SSID like it does when debugging app

Actual behavior:
Returns Not Available

Reproduces how often:
100%

Versions

iOS 12

@msari-ipe-ext-1

This comment has been minimized.

Show comment
Hide comment
@msari-ipe-ext-1

msari-ipe-ext-1 Oct 2, 2018

Yes the entitlement changed in iOS, this needs to be added to the plugin.xml and you need to update your entitlements

    <config-file parent="com.apple.developer.networking.wifi-info" target="*/Entitlements-Release.plist">
        <true />
    </config-file>
    <config-file parent="com.apple.developer.networking.wifi-info" target="*/Entitlements-Debug.plist">
        <true />
    </config-file>

msari-ipe-ext-1 commented Oct 2, 2018

Yes the entitlement changed in iOS, this needs to be added to the plugin.xml and you need to update your entitlements

    <config-file parent="com.apple.developer.networking.wifi-info" target="*/Entitlements-Release.plist">
        <true />
    </config-file>
    <config-file parent="com.apple.developer.networking.wifi-info" target="*/Entitlements-Debug.plist">
        <true />
    </config-file>
@GiancarloGomez

This comment has been minimized.

Show comment
Hide comment
@GiancarloGomez

GiancarloGomez Oct 3, 2018

Hello, first of, thank you so much for responding. I added to the plugin.xml file under /plugins/wifiwizard2/plugin.xml and I have Access WiFi Information enabled under capabilities in xCode and under Application Services on the AppID on Apple Developer Account portal. It is still coming over as an empty string. Is there something I am missing? I know you stated update my Entitlements and just wanted to make sure what I did is what you meant.

GiancarloGomez commented Oct 3, 2018

Hello, first of, thank you so much for responding. I added to the plugin.xml file under /plugins/wifiwizard2/plugin.xml and I have Access WiFi Information enabled under capabilities in xCode and under Application Services on the AppID on Apple Developer Account portal. It is still coming over as an empty string. Is there something I am missing? I know you stated update my Entitlements and just wanted to make sure what I did is what you meant.

@GiancarloGomez

This comment has been minimized.

Show comment
Hide comment
@GiancarloGomez

GiancarloGomez commented Oct 3, 2018

screen shot 2018-10-03 at 11 25 31 am

@JamesCrowMedia

This comment has been minimized.

Show comment
Hide comment
@JamesCrowMedia

JamesCrowMedia Oct 4, 2018

@GiancarloGomez Find your Entitlements-Debug.plist and Entitlements-Release.plist files and make sure the following is included in both:

<key>com.apple.developer.networking.wifi-info</key>
    <true/>

The xCode GUI did not properly add that line to the Entitlements-Release.plist file, so it was working for me on local builds, but not after publishing. After manually adding that line to Entitlements-Release.plist, WifiWizard2 is now working on TestFlight.

JamesCrowMedia commented Oct 4, 2018

@GiancarloGomez Find your Entitlements-Debug.plist and Entitlements-Release.plist files and make sure the following is included in both:

<key>com.apple.developer.networking.wifi-info</key>
    <true/>

The xCode GUI did not properly add that line to the Entitlements-Release.plist file, so it was working for me on local builds, but not after publishing. After manually adding that line to Entitlements-Release.plist, WifiWizard2 is now working on TestFlight.

@GiancarloGomez

This comment has been minimized.

Show comment
Hide comment
@GiancarloGomez

GiancarloGomez Oct 5, 2018

GiancarloGomez commented Oct 5, 2018

@tripflex

This comment has been minimized.

Show comment
Hide comment
@tripflex

tripflex Oct 6, 2018

Owner

Thanks guys, this should be resolved with latest PR that was just merged 4578a2d please let us know if you have issues using latest master with this update added

Owner

tripflex commented Oct 6, 2018

Thanks guys, this should be resolved with latest PR that was just merged 4578a2d please let us know if you have issues using latest master with this update added

@tripflex tripflex closed this Oct 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment