paypal / paypal-here-sdk-android-distribution

Add credit card (swipe & key-in) capabilities to your Android app
Other
84 stars 95 forks source link

PayPalHereSDKWrapper.getInstance().isMagstripeReaderConnected() always returns false #99

Closed kerekson closed 6 years ago

kerekson commented 7 years ago

I am trying to collect a payment using a Magstripe Reader that is connected through the Audio Jack, but for some reason whenever I call PayPalHereSDKWrapper.getInstance().isMagstripeReaderConnected() it always returns false meaning that it is not detecting the AudioJack Reader.. I am using a Google Pixel on the latest android version.. Is there anything I need to make sure I am doing when I try and connect to the AudioJack Reader?

ppmtscory commented 7 years ago

Are you using the sample app or your own integration? Do you have the volume, on the Pixel, turned all the way up and disabled any equalizers? Also, some of those phones have volume limiters that need to be manually overridden the first time. Can you also check that?

kerekson commented 7 years ago

Cory,

So I just turned up the volume on my Pixel and now the audio reader is connected through the sample app, but it does not recognize it in my own app.. I seem to be following the same process the sample app does, but mine is not being detected..

On Jul 31, 2017, at 1:01 PM, Cory notifications@github.com wrote:

Are you using the sample app or your own integration? Do you have the volume, on the Pixel, turned all the way up and disabled any equalizers? Also, some of those phones have volume limiters that need to be manually overridden the first time. Can you also check that?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/paypal/paypal-here-sdk-android-distribution/issues/99#issuecomment-319164376, or mute the thread https://github.com/notifications/unsubscribe-auth/ARvKsZkamSkiGTH2vgE4TGBlKev5HCf6ks5sTiRzgaJpZM4OounZ.

kerekson commented 7 years ago

If the device is connected through the Audio jack then when I call,

PayPalHereSDKWrapper.getInstance().isMagstripeReaderConnected() it should return true,

correct?

On Jul 31, 2017, at 1:46 PM, Klay Erekson klay.erekson@gmail.com wrote:

Cory,

So I just turned up the volume on my Pixel and now the audio reader is connected through the sample app, but it does not recognize it in my own app.. I seem to be following the same process the sample app does, but mine is not being detected..

On Jul 31, 2017, at 1:01 PM, Cory <notifications@github.com mailto:notifications@github.com> wrote:

Are you using the sample app or your own integration? Do you have the volume, on the Pixel, turned all the way up and disabled any equalizers? Also, some of those phones have volume limiters that need to be manually overridden the first time. Can you also check that?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/paypal/paypal-here-sdk-android-distribution/issues/99#issuecomment-319164376, or mute the thread https://github.com/notifications/unsubscribe-auth/ARvKsZkamSkiGTH2vgE4TGBlKev5HCf6ks5sTiRzgaJpZM4OounZ.

ppmtscory commented 7 years ago

If you have all the listeners and everything implemented just like the sample app, then it should, as that's the function that the sample app uses to check.

ppmtscory commented 6 years ago

Closing this due to inactivity. If your issue persists, please update to the latest SDK and either reopen or create a new issue with additional details.