GithubHelp home page GithubHelp logo

iOS 9 about instagramplugin HOT 6 CLOSED

vstirbu avatar vstirbu commented on June 1, 2024
iOS 9

from instagramplugin.

Comments (6)

yodarjun avatar yodarjun commented on June 1, 2024

+1 Has anyone been able to get this working in iOS9? It works perfectly in 8.4. Any help would be much appreciated. Thanks.

from instagramplugin.

sfrdmn avatar sfrdmn commented on June 1, 2024

It should work. iOS 9 changed how custom URLs are handled: you need to explicitly white list custom URLs e.g. instagram:// for this plugin to work

You can modify your *-Info.plist file in /platforms/ios, but that's a generated file. Alternatively, I think you can make a custom plugin which generates the correct values in the .plist file

See link

Edit: the property you need to modify is LSApplicationQueriesSchemes btw

from instagramplugin.

vstirbu avatar vstirbu commented on June 1, 2024

We can handle this from within this plugin by adding a config-file element in the iOS section of the plugin.xml.

<config-file target="*-Info.plist" parent="CFBundleURLTypes">
    <array>
        <dict>
            <key>key</key>
            <string>value</string>
        </dict>
    </array>
</config-file>

We just need the relevant key and value. Also parent value needs to be confirmed.

from instagramplugin.

sfrdmn avatar sfrdmn commented on June 1, 2024

Oh right :P

This works for me:

<platform name="ios">
  <config-file target="*-Info.plist" parent="LSApplicationQueriesSchemes">
    <array>
      <string>instagram</string>
    </array>
  </config-file>
</platform>

from instagramplugin.

sfrdmn avatar sfrdmn commented on June 1, 2024

However, previous values in LSApplicationQueriesSchemes should not be overwritten. Not sure how to do that.

from instagramplugin.

vstirbu avatar vstirbu commented on June 1, 2024

Looking at plugman source code, and it seems that when the plist is updated all values are merged instead of overwritten. So, I would say that just adding the snippet to the plugin.xml is the right thing to do to fix the functionality for iOS9.

@sfrdmn, would you make a pull request?

from instagramplugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.