3rd party news feed icon updates

16.1Functional Overview

After the device and the mobile phone are paired, if the mobile phone receives a message notification and sends it to the device through the ANCS protocol, the default icon and name are displayed for the first time. At this time, the firmware transmits the application package name to the app, and the app obtains the application information and information through the package name background. The application icon is transmitted to the firmware through the protocol, and the corresponding application icon and name are updated.

16.2Property description

Parameters Description Notes
delegate proxy object id (processing message icon callback method)
handleIconAndNameComplete process completed application icon and name block callback block
currentModel cached third-party app information model object (IDOGetAppPackNameModel),
each time the local database is read
baseUrlPath base url address If it is not assigned, go to the Apple interface
Apple's complete address: https://itunes.apple.com/lookup?bundleId=XXX&country=XXX
It is recommended to do cache processing in the background to speed up data loading

16.3 Method description

//Actively obtain the icon and name
- (BOOL)getAppIconAndName;

When the device is connected for the first time, it actively obtains the package name information cached by default by the firmware once. Other times, this method does not need to be executed, and the SDK already listens for firmware update notifications.

16.4 Proxy method description

/**
 Handling app icon and name log callbacks
 */
- (void)handleIconLogMessage:(NSString *)message;

/**
 Processing completed application icon and name callback
 */
- (void)handleIconAndNameComplete;

Proxy method callbacks are optional.

Copyright © 2015-2020 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2023-12-18 10:04:13

results matching ""

    No results matching ""