Skip to content

Commit

Permalink
Added: Android URL scheme recognition feature is added.
Browse files Browse the repository at this point in the history
  • Loading branch information
sassembla committed Dec 24, 2018
1 parent e1bfc39 commit d69f0b1
Show file tree
Hide file tree
Showing 11 changed files with 88 additions and 3 deletions.
8 changes: 8 additions & 0 deletions Assets/Autoya/Notification/Plugins/Android.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
4 changes: 1 addition & 3 deletions Assets/AutoyaSample/9_Notification/URLSchemeSample.cs
Expand Up @@ -10,9 +10,7 @@ public void Start()
this handler will fire when you tap your URL Scheme on browser/mail/other app.
e,g,
sctest://heheh%3Fherecomes%3Ddaredevil%26you%3Dgood
<this feature is only supported on iOS.>
sctest://heheh?herecomes=daredevil&you=good
*/
Autoya.Notification_SetURLSchemeReceiver(
schemeParameterDict =>
Expand Down
8 changes: 8 additions & 0 deletions Assets/Plugins/Android.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions Assets/Plugins/Android/AutoyaAndroidPlugin.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions Assets/Plugins/Android/AutoyaAndroidPlugin/AndroidManifest.xml
@@ -0,0 +1,18 @@
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.unity3d.player"
xmlns:tools="http://schemas.android.com/tools"
android:versionCode="1"
android:versionName="1.0">
<application>
<activity android:name="com.example.urlschemeplugin.URLSchemePlugin">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- この部分に直書きになるの本当にダサいと思う、アプリ側で編集する箇所がUnityから乖離している。Xcodeならあそこに書く、とかが定番なのに、Androidはそうなってない。なんとか逃げ場がないものか。 -->
<data android:scheme="autoyascheme" />
</intent-filter>
</activity>
</application>
</manifest>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Assets/Plugins/Android/AutoyaAndroidPlugin/project.properties
@@ -0,0 +1,2 @@
target=android-16
android.library=true

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d69f0b1

Please sign in to comment.