代码调整
This commit is contained in:
parent
43a5c18937
commit
4db0e14c02
@ -66,7 +66,11 @@ public partial class MainPage : ContentPage
|
||||
InitializeComponent();
|
||||
_mainMainViewModel = mainViewModel;
|
||||
BindingContext = _mainMainViewModel;
|
||||
}
|
||||
|
||||
protected override void OnAppearing()
|
||||
{
|
||||
base.OnAppearing();
|
||||
#if IOS
|
||||
SetNFCCallbacks();
|
||||
#endif
|
||||
|
||||
@ -30,5 +30,11 @@
|
||||
<string>Assets.xcassets/appicon.appiconset</string>
|
||||
<key>NFCReaderUsageDescription</key>
|
||||
<string>此应用需要使用NFC功能来与智能锁设备通信</string>
|
||||
<key>UIBackgroundModes</key>
|
||||
<array>
|
||||
<string>fetch</string>
|
||||
<!-- 如果需要 NFC 后台操作,添加: -->
|
||||
<string>nfc-tag-reading</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user