Comments (2)
And iOS (Not tested):
RNZendeskBridge.m
:
RCT_EXTERN_METHOD(identifyAnonymousWithName:(NSString *)name);
RCT_EXTERN_METHOD(identifyAnonymousWithEmail:(NSString *)email);
RCT_EXTERN_METHOD(identifyAnonymousWithNameAndEmail: (NSString *)name email:(NSString *)email);
And RNZendesk.swift
:
@objc(identifyAnonymousWithName)
func identifyAnonymousWithName(name: String?) {
let identity = Identity.createAnonymous(name: name, email: "")
Zendesk.instance?.setIdentity(identity)
}
@objc(identifyAnonymousWithEmail)
func identifyAnonymousWithEmail(email: String?) {
let identity = Identity.createAnonymous(name: "", email: email)
Zendesk.instance?.setIdentity(identity)
}
@objc(identifyAnonymousWithNameAndEmail)
func identifyAnonymousWithNameAndEmail(name: String?, email: String?) {
let identity = Identity.createAnonymous(name: name, email: email)
Zendesk.instance?.setIdentity(identity)
}
from react-native-zendesk.
A new version has been published which has added support for anonymous authentication: https://github.com/dcvz/react-native-zendesk/releases/tag/v2.0.0
from react-native-zendesk.
Related Issues (19)
- 0.60 Android build error HOT 10
- iOS build error Undefined symbol HOT 2
- module compiled with Swift 5.0 cannot be imported by the Swift 5.1 compiler HOT 3
- RNZendesk is null HOT 1
- In ios RNZendesk undefined HOT 6
- can't install ZendeskSDK HOT 1
- Can't compile HOT 1
- Is the chat available also?
- Publish the latest changes to NPM HOT 1
- Adding package.lock to repo
- Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.2 compiler HOT 10
- Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.2.4 compiler
- Attachment gallery button click detection is off
- Xcode build failed HOT 3
- Module compiled with Swift 4.1 cannot be imported by the Swift 4.2.1 compiler HOT 2
- Build Error: linker command failed with exit code 1 HOT 2
- Failed build: No such module 'Zendesk' HOT 5
- Podfile support for installation HOT 1
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 react-native-zendesk.