Remove intents
This commit is contained in:
@ -53,14 +53,6 @@
|
|||||||
<category android:name="android.intent.category.LAUNCHER"/>
|
<category android:name="android.intent.category.LAUNCHER"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.intent.action.VIEW" />
|
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
|
||||||
<category android:name="android.intent.category.BROWSABLE" />
|
|
||||||
<data
|
|
||||||
android:scheme="haclient" />
|
|
||||||
</intent-filter>
|
|
||||||
|
|
||||||
<service
|
<service
|
||||||
android:name="io.flutter.plugins.androidalarmmanager.AlarmService"
|
android:name="io.flutter.plugins.androidalarmmanager.AlarmService"
|
||||||
|
@ -6,30 +6,10 @@ import io.flutter.plugins.GeneratedPluginRegistrant;
|
|||||||
import io.flutter.plugins.share.FlutterShareReceiverActivity;
|
import io.flutter.plugins.share.FlutterShareReceiverActivity;
|
||||||
|
|
||||||
public class MainActivity extends FlutterShareReceiverActivity {
|
public class MainActivity extends FlutterShareReceiverActivity {
|
||||||
private static final String CHANNEL = "haclient.deeplink/channel";
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
GeneratedPluginRegistrant.registerWith(this);
|
GeneratedPluginRegistrant.registerWith(this);
|
||||||
|
|
||||||
Intent intent = getIntent();
|
|
||||||
Uri data = intent.getData();
|
|
||||||
|
|
||||||
new MethodChannel(getFlutterView(), CHANNEL).setMethodCallHandler(
|
|
||||||
new MethodChannel.MethodCallHandler() {
|
|
||||||
@Override
|
|
||||||
public void onMethodCall(MethodCall call, MethodChannel.Result result) {
|
|
||||||
if (call.method.equals("initialLink")) {
|
|
||||||
if (startString != null) {
|
|
||||||
result.success(startString);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if (data != null) {
|
|
||||||
startString = data.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user