til's People
til's Issues
iOS Universalink firebase
- If we use firebase dynamic link for universal link. We can use custom domain firebase support , and if we setting
"appAssociation": "AUTO"
infirebase.json
. - We just update team ID, appID and google will generate
apple-app-site-association
for us. But when we update it will need times to hosting refresh.
Custom Pod
- Release pod with zip. we must set s.source = { :http => 'url to zip file' }
- custom podspec and zip file: pod "", :podspec => "Url file pod spec".
- If we take pod spec on github we must get a raw file link
- Raw file on enterprise github will have token, we can't use this
- push pod to private, it will build again
Tạo environment cho postman
Get list devices from Apple portal
- Open developer portal site
- Open device list
- Open console and paste this code
var data = document.querySelectorAll(".infinite-scroll-component .row");
var deviceListString = "Device ID\tDevice Name\tDevice Platform\n"
for (var i = 1; i < data.length; i++) {
deviceListString += (data[i].childNodes[1].innerText + "\t" + data[i].childNodes[0].innerText + "\t" + (data[i].childNodes[2].innerText == "iPhone" || data[i].childNodes[2].innerText == "iPad" || data[i].childNodes[2].innerText == "Apple Watch" ? "ios" : "mac") + "\n");
}
console.log(deviceListString);
https://stackoverflow.com/questions/16052814/export-devices-added-in-apples-ios-provision-portal
iOS Universal Link
All step to settup and work with universal link:
- Active associate domain on app Identifier on developer.apple.com
- Load new provisioning file
- Active associate domain on Capability on targets
- Setup domain we will use for universal link
- Domain use for universal link must have apple-app-site-association(https://developer.apple.com/documentation/safariservices/supporting_associated_domains?language=objc)
- We can handle this link depend on custom url (https://developer.apple.com/documentation/xcode/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app?language=objc)
- On iOS 14 we must have mode developer for testing (https://developer.apple.com/documentation/safariservices/supporting_associated_domains)
- iOS devive have active option for test https://stackoverflow.com/questions/63500747/universallink-stop-working-on-ios-14-devices
1 APNS for multi app
Fast genrate Array
If I want to create array with a fixed number of default values, we can use Array(repeating:count:)
.
Example:
var digitCounts = Array(repeating: 0, count: 10)
print(digitCounts)
// Prints "[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]"
Date Formatter
- Some bug with time, time server in most case we should set calendar to Gregorian
- Convert Time from current Calendar to Gregorian Calendar:
NSDate *localDate1 = [NSDate date];
NSCalendar *calendar = [NSCalendar calendarWithIdentifier:NSCalendarIdentifierGregorian];
NSDateComponents *components = [calendar componentsInTimeZone:calendar.timeZone fromDate:localDate1];
NSDate *localDate = [calendar dateFromComponents:components];
Localization Info.plist
- Add InfoPlist.strings file.
- Localization for this file
- Add corresponding key and text for each file
MetricKit
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.