question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin does not work on iOS Simulator

See original GitHub issue

Hi there, I used to successfully integrated the plugin under Android app. Now, I am preparing the same app to run under iOS. I already have iOS appId and the app is even published on App Store. Since I do not have an iPhone, I try to test if the plugin works on iOS Simulator (I use Mojave 10.14.6) and Simulator runs iOS 13 (iPhone 11 Pro Max). I have added to Info.plist the required record as described in the Readme file. I tried to call LaunchReview.launch(iOSAppId: "14********"); and then LaunchReview.launch(iOSAppId: "14********", writeReview: false); but neither seems to do anything - basically nothing happens. Is it possible to test the plugin on Simulator and if yes, what might be that I did wrong?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
thivankasarathchandracommented, Nov 24, 2019

@KaYBlitZ is correct. IOS simulators does not contain itunes. So it should throw an error. in source code, itms-apps: code is used to launch the itunes and proceed to corresponding app page. So this is not a bug in the plugin.It might give an error of “address is invalid” or something. Please check the app on a real device.

1reaction
KaYBlitZcommented, Nov 12, 2019

That seems to be the case. I looked at the code and there is now a check:

if ([[UIApplication sharedApplication] canOpenURL:itunesURL]) {
     [[UIApplication sharedApplication] openURL:itunesURL];
}

Since there is now a canOpenURL check, an error is not thrown. Looks like emulators cannot open an iTunes link. On physical device, this will work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

An iOS plugin that fails to run in the IOS Simulator - Xojo Forum
So I figured that a MobileControl plugin using the UIKit requires a Cocoa replica to display in the IDE. This has nothing to...
Read more >
Simulator crashing with iOS < 1… | Apple Developer Forums
I can no longer run my app in the simulator with a version lower than iOS14. I tried iOS12, iOS12.4, iOS13.7 and they...
Read more >
flutter run does not work on iOS Simulator but Xcode can build
In my Flutter project, flutter run command cannot build project to iOS Simulator but in Xcode when I click build button, Xcode can...
Read more >
iOS Troubleshooting Guide | Capacitor Documentation
On iOS, this can happen if Capacitor doesn't find the plugins or can't inject its code into the WebView. First of all, make...
Read more >
Xcode attempts to build plugins for iOS. Is there a workaround?
Right now (Xcode 13.3.1) attempts to build plugins for the target platform when plugins should only be built and run on the host...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found