junny_dev_kit 0.0.3+4 junny_dev_kit: ^0.0.3+4 copied to clipboard
JunnySoft开发工具包.
JunnySoft Dev Kit #
公共开发工具
Getting Started #
一些依赖包需要在项目做的各种配置
background_downloader #
Android
No setup is required if you don't use notifications. If you do:
- Starting with API 33, you need to add
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
to your app'sAndroidManifest.xml
- If needed, localize the button text by overriding string resources
bg_downloader_cancel
,bg_downloader_pause
,bg_downloader_resume
and descriptionsbg_downloader_notification_channel_name
,bg_downloader_notification_channel_description
.
iOS
On iOS, ensure that you have the Background Fetch capability enabled:
- Select the Runner target in XCode
- Select the Signing & Capabilities tab
- Click the + icon to add capabilities
- Select 'Background Modes'
- Tick the 'Background Fetch' mode
Note that iOS by default requires all URLs to be https (and not http). See here for more details and how to address issues.
If using notifications, add the following to your AppDelegate.swift
:
UNUserNotificationCenter.current().delegate = self as UNUserNotificationCenterDelegate
or if using Objective C, add to AppDelegate.m
:
[UNUserNotificationCenter currentNotificationCenter].delegate = (id<UNUserNotificationCenterDelegate>) self;