Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

iOS 10 issue, requestReadPermission is undefined. #42

Closed
13 tasks
rolinger opened this issue Nov 13, 2016 · 3 comments
Closed
13 tasks

iOS 10 issue, requestReadPermission is undefined. #42

rolinger opened this issue Nov 13, 2016 · 3 comments

Comments

@rolinger
Copy link

Expected behaviour

Should load fine, but it is not

Actual behaviour

Tell us what happens instead. Provide a log message if relevant
Verson 1.3.0 sim is loaded into ios environment, deploying to iOS simulator iPhone 6 (iOS 10.0).

Getting error on: window.plugins.sim.requestReadPermission - says its not a function and is undefined. It is being referenced after $ionicPlatform.ready is called. However, this all works just fine on Android.

  • iOS device
  • [ x] iOS simulator
  • Android device
  • Android emulator

I am using

  • [x ] cordova
  • [x ] ionic
  • PhoneGap
  • PhoneGap Developer App
  • Intel XDK
  • Intel App Preview
  • Telerik
  • Other:

Hardware models

Example: Samsung Galaxy S6, iPhone 6s

OS versions

Example: Android 4.4.2, iOS 9.2

I've checked these

  • It happens on a fresh Cordova CLI project as well.
  • I'm waiting for deviceready to fire.
  • My JavaScript has no errors (window.onerror catches nothing).
  • I'm using the latest cordova library, Android SDK, Xcode, etc.

So how can we reproduce this?

Provide the used components versions (cordova, ionic, etc).

Provide the steps to reproduce the issue.

Provide files, sources if available.

@pbakondy
Copy link
Owner

You dont have to use requestReadPermission on iOS.
This is Android only feature.

On 13 Nov 2016 20:25, "rolinger" notifications@github.com wrote:

Expected behaviour

Should load fine, but it is not
Actual behaviour

Tell us what happens instead. Provide a log message if relevant
Verson 1.3.0 sim is loaded into ios environment, deploying to iOS
simulator iPhone 6 (iOS 10.0).

Getting error on: window.plugins.sim.requestReadPermission - says its not
a function and is undefined. It is being referenced after
$ionicPlatform.ready is called. However, this all works just fine on
Android.

  • iOS device
  • [ x] iOS simulator
  • Android device
  • Android emulator

I am using

  • [x ] cordova
  • [x ] ionic
  • PhoneGap
  • PhoneGap Developer App
  • Intel XDK
  • Intel App Preview
  • Telerik
  • Other:

Hardware models

Example: Samsung Galaxy S6, iPhone 6s
OS versions

Example: Android 4.4.2, iOS 9.2
I've checked these

  • It happens on a fresh Cordova CLI project as well.
  • I'm waiting for deviceready to fire.
  • My JavaScript has no errors (window.onerror catches nothing).
  • I'm using the latest cordova library, Android SDK, Xcode, etc.

So how can we reproduce this?

Provide the used components versions (cordova, ionic, etc).

Provide the steps to reproduce the issue.

Provide files, sources if available.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#42, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAej2YSPc05oqAr4Kxm6MHEF_QQMxB8lks5q92Q6gaJpZM4Kwxkh
.

@rolinger
Copy link
Author

ah, ok...will give it shot and post. thanks

@rolinger
Copy link
Author

yup...fixed. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants