A Push user portrait product (image) iOS integration practice

Source: Internet
Author: User

A recent launch of the product "image of a user portrait", can provide developers with a rich user portrait and real-time scene recognition capabilities. After a period of experience, we think a similar effect is good, so write down this guide, easy to integrate with the small partners to understand the specific steps.

First, login account and create app to get app ID

1. Visit the [Push Developer Center] and click Register Now:

2. Fill in and register your account according to your personal circumstances (if you have an account you can go directly to the next step):

3. Return to [Push Developer Center] and log in with the registered account in the previous step. After entering the developer Platform Panel, select image/User portrait of the menu bar on the left:

4, the current image has not fully open the registration channel, the need for self-service to open. After entering the image and user Portrait panel, click the Apply Now button, fill in the relevant information and apply for the opening of the image function:

5. Fill in the relevant information of the application. After waiting for a function like a feature to complete, re-enter the function menu, click the Add App button:

6, App platform location check iOS, and need to fill in the bundle ID of the application to be connected. After completing the page information, click Submit new app:

7. After the new app is successful, the page will automatically return to the app list. Select the new app and click Apply configuration:

8, under the configuration information can see the app ID, we can copy it to save. In the subsequent integration steps, we will use the app ID:

Second, configure the Image SDK

1, a push user portrait provides an SDK development kit, which contains all the resources required for the iOS SDK and can be downloaded into a push document center. To download the SDK Resource Pack, tick the image icon and click the Download iOS button:

2, unpack the resource bundle, you can see the following file structure:

3. Detailed description of resource package

Access Documents/Image integration documents. PDF: integrated documentation for images

Access Document/user image encoding table. xlsx: User image encoding Table

Demo Demo/ginsightsdkuserdemo.ipa: A demo-like IPA package

Resource File/GInsightSDK.h: Image SDK header file

Resource files/libginsightsdk-1.4.1.a: a static library of main packages like SDK

Resource file/libgtcommonsdk.a: Image SDK Tool Library

Demo Project/ginsightsdkuserdemo/: a Project like demo

Readme.txt: Information about the version of the image

4, note: libginsightsdk-1.4.1.a and LIBGTCOMMONSDK.A support both simulator and real machine.

5, a similar SDK static library settings

Right-click Add File to import the file under the resource file directory.

6, add dependent library support, this step is key:

7. Set other Linker Flags

Locate the main project target, Build Setting, linking, and other Linker Flags, set it to-OBJC ():

Third, initialize and launch the SDK

1. Initialize the relevant information of the starting interface:

2. Add a header file to the project's APPDELEGATE.M, initialize and launch the SDK using the app ID previously obtained:

3. Simultaneous implementation of two callbacks

The implementation obtains the Giuid callback delegate, obtains to the Giuid after uploads the service side to query the user portrait;

Implements the error callback delegate.

Iv. considerations for submitting App Store audits with an integrated SDK-like app

1, in order to obtain accurate results, you need to add Adsupport.framework library support, so when submitting the App Store, you need to do the following:

(1) Advertise in app, get IDFA to be approved by Apple.

(2) There are no ads in the app, but a specific ad was previously placed, which can be checked by Apple for review.

Check

The above is I integrated a push user portrait product (image) of the whole process, I hope to help you! If you have any other questions, we can communicate in the message area.

A Push user portrait product (image) iOS integration practice

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.