Skip to content

Instantly share code, notes, and snippets.

View deanlyoung's full-sized avatar
👍
Don't Panic

Dean L. Young deanlyoung

👍
Don't Panic
View GitHub Profile
@deanlyoung
deanlyoung / aerosol-tweets.txt
Created July 8, 2021 17:29
Tweets, Threads, Links, etc. from Aerosol Scientists
https://twitter.com/j_g_allen/status/1411319302322638851
https://twitter.com/ProfCharlesHaas/status/1377748892897398795
https://twitter.com/Poppendieck/status/1401340596216868866
https://twitter.com/Poppendieck/status/1366055136859070468
https://twitter.com/linseymarr/status/1343318611218345987
https://twitter.com/jljcolorado/status/1337073578345435138
https://twitter.com/marwa_zaatari/status/1358625462889627653
https://twitter.com/HuffmanLabDU/status/1356811581242236939
https://twitter.com/CorsIAQ/status/1315550910194438146
https://twitter.com/CorsIAQ/status/1356857766569074691
// change these
const token = ""
const device_type = ""
const device_id = ""
// instantiate widget
const data = await fetchData()
const widget = createWidget(data)
Script.setWidget(widget)
Script.complete()

Note

Apple will reject apps that are using private url schemes (Ugh, Apple....) if they are pretty much obvius. Some apps are rejected and others are not, so, be aware of this issue before implementing any of those URL's in your app as a feature.

Updates

  • [UPDATE 4] iOS 10 update: apparently settings now can be reached using App-Pref instead of prefs
  • [UPDATE 3] For now you just can use url schemes to open your apps's settings with Swift 3.0 (Xcode 8). I'll keep you informed when OS preferences can be reached
  • [UPDATE 2] The openURL() method of UIApplication is now deprecated. You should use application(_:open:options:) instead
  • [UPDATE 1] Not yet tested in iOS 10. It will fail because of policies changes in URL scheme handling.