Skip to content
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

Fix extension crash on iOS 13 #69

Merged
merged 3 commits into from
Dec 31, 2019
Merged

Conversation

NiklasMerz
Copy link
Collaborator

@NiklasMerz NiklasMerz commented Sep 6, 2019

Changing the options seems to fix the crash on iOS 13. Then strange thing is that this seems to work on iOS 12 aswell when built with Xcode 11. Working with @availableand the old option did not work for me and now it shows warnings because the new optiosn are on iOS 13 only. No idea why.

This "fix" needs Xcode 11 so we should wait before merging this to a new version.

Fixes #67

@NiklasMerz NiklasMerz requested a review from j3k0 September 6, 2019 09:21
src/ios/ShareExtension/ShareViewController.m Outdated Show resolved Hide resolved
@NiklasMerz
Copy link
Collaborator Author

@j3k0 As this only works in Xcode 11 and newer how do we implement this? Use build flags? I am not that familiar with this. New major version?

Do you have time to look into this?

We also need version checks for iOS 13. At least there is a warning for that. But this new code works for me on iOS 12.4. That doesn't really make sense to me. And I don't really know how to make this version check in a good way.

@NiklasMerz
Copy link
Collaborator Author

This is my attempt to check version. There has to be a cleaner version.

@NiklasMerz
Copy link
Collaborator Author

@EternallLight Would you like to review and/or test this?

@j3k0
Copy link
Owner

j3k0 commented Sep 23, 2019 via email

@NiklasMerz NiklasMerz marked this pull request as ready for review September 23, 2019 13:58
Copy link

@Gargamil Gargamil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works for me @ ios13 and xcode 11.0

@NiklasMerz
Copy link
Collaborator Author

Thank you for testing.

@hackinghieser
Copy link

Hi,

i tested the fix on iOS 13 as well as on iOS 12.4. Works without any issues 👍

EtienneLem added a commit to missive/cordova-plugin-openwith that referenced this pull request Nov 1, 2019
EtienneLem added a commit to missive/cordova-plugin-openwith that referenced this pull request Nov 1, 2019
@NiklasMerz NiklasMerz requested a review from j3k0 November 6, 2019 13:34
@NiklasMerz NiklasMerz merged commit a914317 into j3k0:master Dec 31, 2019
@NiklasMerz
Copy link
Collaborator Author

@j3k0 I am thinking about doing a new release with this fix. Since this is a breaking change (requiring Xcode 11), should we do a major relase (2.0)?

@j3k0
Copy link
Owner

j3k0 commented Jan 1, 2020

Hey @NiklasMerz, happy new year :)

I agree, doing a major release seems appropriate. Do you have npm publish permission or do you want help from me?

@j3k0
Copy link
Owner

j3k0 commented Jan 1, 2020

#72 seems good to include too in the new release.

@NiklasMerz
Copy link
Collaborator Author

Happy new year. Yes I have NPM permission and will do the release right now.

@NiklasMerz
Copy link
Collaborator Author

Version 2.0 is released. https://github.com/j3k0/cordova-plugin-openwith/releases/tag/v2.0.0

I just did a mistake, I had to revert. I checked in package-lock.json that's why the dependabot PR's opened. @j3k0 Should we check package-lock.json in to git and update the dependencies?

@j3k0
Copy link
Owner

j3k0 commented Jan 2, 2020

@NiklasMerz as far as I know. package-lock.json files should NOT be checked in git for libraries, only for apps.

@NiklasMerz
Copy link
Collaborator Author

Good to know. Then we could add it to gitignore

BenjaminPoncet pushed a commit to BenjaminPoncet/cordova-plugin-openwith that referenced this pull request Mar 4, 2020
* Fix extension crash on iOS 13

* Fix UISceneOpenExternalURLOptions init

* iOS 13 version check
BenjaminPoncet added a commit to BenjaminPoncet/cordova-plugin-openwith that referenced this pull request Mar 4, 2020
dnlek added a commit to dnlek/cordova-plugin-openwith that referenced this pull request Jul 22, 2021
 into j3k0-master

* 'master' of https://github.com/j3k0/cordova-plugin-openwith:
  Fix missing quotes
  Change code sign indentity and style
  Fix async call
  Added a copy files to after install hook
  IOS : Fix __BUNDLE_IDENTIFIER__ to prevent double suffix
  IOS : Add ShareExtension-Entitlements.plist to package.json
  IOS : Remove "iOS Setup" section
  IOS : Fix App Group creation and fix Share Extension Bundle Identifier
  IOS : Fix getCordovaParameter() to use package.json Because after_prepare hook does not pass installation variables in process.argv
  IOS : Move hooks on before and after prepare This allows ShareExtension to be created and updated in any case
  2.0.0
  Bump version 2.0.0
  change hook triggering iosAddTarget.js. Fixes the target not being added to xcode project. (j3k0#72)
  Fix iOS build flags (j3k0#84)
  Fix extension crash on iOS 13 (j3k0#69)
  1.3.0
  Set version in plugin.xml
dnlek added a commit to dnlek/cordova-plugin-openwith that referenced this pull request Jul 22, 2021
* j3k0-master:
  Fix missing quotes
  Change code sign indentity and style
  Fix async call
  Added a copy files to after install hook
  IOS : Fix __BUNDLE_IDENTIFIER__ to prevent double suffix
  IOS : Add ShareExtension-Entitlements.plist to package.json
  IOS : Remove "iOS Setup" section
  IOS : Fix App Group creation and fix Share Extension Bundle Identifier
  IOS : Fix getCordovaParameter() to use package.json Because after_prepare hook does not pass installation variables in process.argv
  IOS : Move hooks on before and after prepare This allows ShareExtension to be created and updated in any case
  2.0.0
  Bump version 2.0.0
  change hook triggering iosAddTarget.js. Fixes the target not being added to xcode project. (j3k0#72)
  Fix iOS build flags (j3k0#84)
  Fix extension crash on iOS 13 (j3k0#69)
  1.3.0
  Set version in plugin.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Main app is not opened on iOS 13
4 participants