Coder Social home page Coder Social logo

Share crash on iOS 12/13 about natshare HOT 10 CLOSED

natmlx avatar natmlx commented on July 30, 2024
Share crash on iOS 12/13

from natshare.

Comments (10)

olokobayusuf avatar olokobayusuf commented on July 30, 2024 2

Okay I'm gonna try to reproduce.

from natshare.

smxthereisonlyone avatar smxthereisonlyone commented on July 30, 2024

I have the same issue, how can we fix it?

from natshare.

olokobayusuf avatar olokobayusuf commented on July 30, 2024

And can you confirm that you are not calling Share from a background thread?

from natshare.

skibitsky avatar skibitsky commented on July 30, 2024

@olokobayusuf Yes, definitely called from thread 0. See the test project attached below. Crashes in the simulator.

Screenshot 2019-07-26 at 14 29 11

Crash.txt
NatShareTest.zip

from natshare.

olokobayusuf avatar olokobayusuf commented on July 30, 2024

Can you try the code in #49 ? Works for me on iOS 12.

from natshare.

olokobayusuf avatar olokobayusuf commented on July 30, 2024

Yup #49 definitely fixes this. The cause of the crash was probably because of the requestAuthorization block, which likely invoked the block on a separate thread (hence causing the main thread crash).

from natshare.

skibitsky avatar skibitsky commented on July 30, 2024

I confirm that it works on iOS 13 device. Thank you!

from natshare.

Ruslan-molodec avatar Ruslan-molodec commented on July 30, 2024

I have the same problem, but I can’t understand how to use code #49

from natshare.

olokobayusuf avatar olokobayusuf commented on July 30, 2024

I have the same problem, but I can’t understand how to use code #49

Have you looked at the README?

from natshare.

Ruslan-molodec avatar Ruslan-molodec commented on July 30, 2024

from natshare.

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.