Skip to content

Instantly share code, notes, and snippets.

View carythh's full-sized avatar

tan huohui carythh

  • hangzhou china
View GitHub Profile
@carythh
carythh / URL Schemes.md
Created January 31, 2023 02:06 — forked from zhuziyi1989/URL Schemes.md
常用 URL Schemes 收集。

关于 URL Scheme 你知道多少?

iOS系统中

由于苹果的各应用都是在沙盒中,不能够互相之间访问或共享数据。但是苹果还是给出了一个可以在APP之间跳转的方法:URL Scheme。简单的说,URL Scheme就是一个可以让 APP 相互之间可以跳转的协议。每个 APP 的URL Scheme都是不一样的,如果存在一样的URL Scheme,那么系统就会响应先安装那个 APP 的URL Scheme,因为后安装的 APP 的URL Scheme被覆盖掉了,是不能被调用的。

Android系统中

Android中的 Scheme 是一种页面内跳转协议,是一种非常好的实现机制,通过定义自己的 Scheme 协议,可以非常方便跳转app中的各个页面;通过scheme协议,服务器可以定制化告诉App跳转那个页面,可以通过通知栏消息定制化跳转页面,可以通过H5页面跳转页面等。 URL Scheme 就如同网页的url链接一样,可以打开App或跳转到相应的页面。但是大部分APP没有公开自己的URL Scheme。

@carythh
carythh / checklist.md
Last active January 31, 2023 01:49
checklist

-[] Understand the business background, whether the requirements are fully understood, and clarify the details of the development requirements

-[] Whether the code follows coding specifications and is easy to understand

-[] Whether the code is modular, whether it's reasonably abstract, whether it's reasonably encapsulated

-[] Whether data structures and algorithms are reasonable, and whether there are potential performance problems

-[] Understand the usage precautions of external dependent sdk libraries, performance problems, and resource management problems