Comments (8)
@jasonm23 Which platform did you see this on?
from phonegap-nfc.
Sorry, late response. this is on Android.
from phonegap-nfc.
Re-opening for Android
from phonegap-nfc.
Callback is in the code https://github.com/chariotsolutions/phonegap-nfc/blob/master/src/android/src/com/chariotsolutions/nfc/plugin/NfcPlugin.java#L292 need to research why it's not firing
from phonegap-nfc.
The callback is begin called in the latest code 542dc37
Note that the callback is called when the message is published, not when a peer reads it. (That's different callback that is not in phonegap-nfc yet)
D/CordovaLog(30521): Received Event: deviceready
I/Web Console(30521): Received Event: deviceready at file:///android_asset/www/js/index.js:35
D/NfcPlugin(30521): execute shareTag
D/CordovaLog(30521): NFC Share [Success]
I/Web Console(30521): NFC Share [Success] at file:///android_asset/www/js/index.js:18
from phonegap-nfc.
The NFC event that's useful is after peer reads shared tag, and the event I
was referring to.
On Thursday, 9 May 2013, Don Coleman wrote:
The callback is begin called in the latest code 542dc37542dc37
Note that the callback is called when the message is published, not when a
peer reads it. (That's different callback that is not in phonegap-nfc yet)D/CordovaLog(30521): Received Event: deviceready
I/Web Console(30521): Received Event: deviceready at
file:///android_asset/www/js/index.js:35
D/NfcPlugin(30521): execute shareTag
D/CordovaLog(30521): NFC Share [Success]
I/Web Console(30521): NFC Share [Success] at
file:///android_asset/www/js/index.js:18—
Reply to this email directly or view it on GitHubhttps://github.com//issues/74#issuecomment-17638515
.
Sent from Gmail Mobile
from phonegap-nfc.
The native code would need to register an onNdefPushCompleteCallback with NfcAdapter.html.setOnNdefPushCompleteCallback
I'm not sure if this should always be called, should be optional, so should be another method call. I'll need to look at the other platforms to see if this can be done in a cross platform way.
from phonegap-nfc.
Should implement on Windows too http://msdn.microsoft.com/en-us/library/windows/apps/hh701134.aspx
from phonegap-nfc.
Related Issues (20)
- Is there a way to hide/disable the native iOS NFC reading dialogs?
- Does this plugin works in iOS 15.2?
- NFC reader
- Android 12 - Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent HOT 25
- Build failed when installing a Plugin in Phonegap (NFC)
- Support for ISO18092 tags in iOS
- Writing NFC Tag didn't succeeded every time in Quasar Cordova mobile App
- android NFC Card HOT 1
- NFC scanning not working IOS HOT 7
- SerialNumber not being retrieved on iOS HOT 1
- Android 12 SDK not fire scan event HOT 3
- Ionic NFC on Android 12 Crushing the App HOT 8
- Ionic Android 13 makeReadOnly java.io.IOException HOT 3
- Does not work with Xcode 14.3 and iOS 16.4 HOT 1
- Does this plugin support BAC ( Basic Access Control ) to read NFC Chip on ePassport ? HOT 1
- NFC Writting Error - Only one tag technology can be connected at a time HOT 6
- Ionic capacitor targetsdk 33 app crash with plugin is installed without nfc plugin work works ok HOT 28
- On ios while reading tag give error 203. "System resources unavailable HOT 7
- NFC Tag Writing Issue HOT 1
- The first two Characters are getting trimmed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phonegap-nfc.