All Projects → appcelerator-modules → titanium-apple-sign-in

appcelerator-modules / titanium-apple-sign-in

Licence: MIT license
Use the iOS 13+ Apple Sign In API with Titanium

Programming Languages

swift
15916 projects
javascript
184084 projects - #8 most used programming language
objective c
16641 projects - #2 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to titanium-apple-sign-in

ti.playservices
Titanium module for Google Play Services
Stars: ✭ 19 (-34.48%)
Mutual labels:  titanium, appcelerator, titanium-module
ti.paint
Touch-based painting with the Titanium SDK.
Stars: ✭ 27 (-6.9%)
Mutual labels:  titanium, appcelerator, titanium-module
titanium-alternate-icons
Leverage the ability to change the app icon in iOS 10.3+
Stars: ✭ 24 (-17.24%)
Mutual labels:  titanium, appcelerator, titanium-module
ti.admob
Use the Google AdMob SDK on iOS and Android with Titanium
Stars: ✭ 51 (+75.86%)
Mutual labels:  titanium, appcelerator, titanium-module
ti.moddevguide
Appcelerator Titanium native Module Guide
Stars: ✭ 39 (+34.48%)
Mutual labels:  titanium, appcelerator, titanium-module
av.imageview
Titanium native ImageView module that extends the default Titanium ImageView with more capabilities and a different caching system.
Stars: ✭ 97 (+234.48%)
Mutual labels:  titanium, appcelerator, titanium-module
titanium-dark-mode
Full support for iOS 13+ / Android 10+ dark mode (semantic colors and images) in Appcelerator Titanium
Stars: ✭ 26 (-10.34%)
Mutual labels:  titanium, appcelerator, ios13
TiFastlane
With TiFastlane you'll be able to fully optimize the way you submit your app updates and maintain your certificates and provisioning profiles of all your Titanium Apps.
Stars: ✭ 83 (+186.21%)
Mutual labels:  titanium, appcelerator
Titanium mobile
🚀 Native iOS- and Android- Apps with JavaScript
Stars: ✭ 2,553 (+8703.45%)
Mutual labels:  titanium, appcelerator
titanium-material
Use the native Material UI/UX framework (https://github.com/CosmicMind/Material) in Titanium!
Stars: ✭ 14 (-51.72%)
Mutual labels:  titanium, appcelerator
vscode-appcelerator-titanium
Appcelerator development tools and UI package for Visual Studio Code.
Stars: ✭ 35 (+20.69%)
Mutual labels:  titanium, appcelerator
ti.exoplayer
A native control for playing videos for Titanium. Based on Google ExoPlayer, using Titanium.Media.VideoPlayer API.
Stars: ✭ 17 (-41.38%)
Mutual labels:  titanium, appcelerator
ti.map
Use native Apple Maps & Google Maps in iOS and Android with Axway Titanium
Stars: ✭ 49 (+68.97%)
Mutual labels:  titanium, appcelerator
nl.fokkezb.loading
The widget provides a simple loading mask that can be easily styled and configured.
Stars: ✭ 96 (+231.03%)
Mutual labels:  titanium, appcelerator
ti.youtube
A small library to get the URL of the desired YouTube video ID to use it natively in Ti.Media.VideoPlayer.
Stars: ✭ 13 (-55.17%)
Mutual labels:  titanium, titanium-module
ti.coremotion
Support for the native iOS CoreMotion framework in Appcelerator Titanium
Stars: ✭ 15 (-48.28%)
Mutual labels:  titanium, appcelerator
staballoy
Reactive UI framework for Titanium Alloy
Stars: ✭ 18 (-37.93%)
Mutual labels:  titanium, appcelerator
griffin-app-opensource
The Axway Griffin App goes open source!
Stars: ✭ 19 (-34.48%)
Mutual labels:  titanium, appcelerator
titanium-turbo
Axway Amplify module that adds some enhancements for Appcelerator Titanium Alloy
Stars: ✭ 15 (-48.28%)
Mutual labels:  titanium, appcelerator
titanium-firebase-analytics
Use the Firebase Analytics SDK in Axway Titanium 🚀
Stars: ✭ 33 (+13.79%)
Mutual labels:  titanium, appcelerator

iOS 13+ Apple Sign In in Titanium Build Status @titanium-sdk/ti.applesignin

Full support for iOS 13+ Apple Sign In with Titanium.

Requirements

The following project- and OS-requirements are necessary:

  • Xcode 11+
  • iOS 13+
  • Titanium SDK 8.0.0+

Example

This module was designed to follow a similar scheme like Ti.Facebook and Ti.GoogleSignIn.

var AppleSignIn = require('ti.applesignin');

AppleSignIn.addEventListener('login', function (event) {
  if (!event.success) {
    alert(event.error);
    return;
  }

  Ti.API.warn(event);
});

var win = Ti.UI.createWindow({
  backgroundColor: '#fff'
});

win.addEventListener('open', () => {
  AppleSignIn.checkExistingAccounts();
});

var btn = AppleSignIn.createLoginButton({ width: 280, height: 38 });

btn.addEventListener('click', function () {
  AppleSignIn.authorize();
});

win.add(btn);
win.open();

API's

Methods

checkExistingAccounts()

Checks for existing accounts (if available)

createLoginButton()

Creates a new localized login button.

authorize({ scopes })

Starts an authorization flow with an optional array of scoped. Defaults to all scopes (fullName and email).

getCredentialState(userId, callback)

Fetches the current credential state with a given user-id (received from the event.profile.userId key of the login event). The result is returned to the state parameter of the callback and can be authorized, revoked, transferred or unknown.

Events

login

The login event with the user's profile.

Installation

  • Add the following entitlements to your project:
<ios>
	<!-- ... -->
	
	<plist>
		<dict>
			<!-- ... -->
		</dict>
	</plist>
	
	<entitlements>
		<dict>
			<key>com.apple.developer.applesignin</key>
			<array>
				<string>Default</string>
			</array>
		</dict>
	</entitlements>
</ios>
  • Make sure your server is eligible to send mails to the Apple Sign In provider service.

License

MIT

Author

Hans Knöchel

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].