Best Ad Networks For Chinese Traffic

Do you want to know which ad networks are the best for Chinese publishers? For your consideration, we’ve supplied three ad networks. In China, over one billion individuals had internet connectivity…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Adding Pinpoint Analytics to an existing project

What’s wrong? maybe your config json is not correct? Maybe try generating the amplifyconfiguration.json from an empty project and use it in yours, sounds good, but it won’t work either. If you are lucky (using the right json file) you can figure out what’s going on by enabling debugging for Amplify SDK in your client.

Long story short, I did all of the above steps, almost two days to find out why it’s not working.

First, do create an empty project with amplify, follow their document of course, and get your amplifyconfiguration.json file. You will get something like this:

As you can see, you need an Identity Pool even if you are not using it, the SDK needs it. The other thing which is not mentioned in the documents is you need to add their auth plugin because the analytics plugin requires it. So on your client side you need to configure the Amplify SDK with auth and analytics plugin.

Everything good? nah, not yet. If you run your app you will see in the debugging logs that there are some permission issues, now you need to configure a permissions on your AWS dashboard which I am not familiar with and I didn’t do this part, but all I know is the identity pool needs two grants, at least in our case it was two, mobileanalytics and mobiletargeting:

Now, you are good to go!

PS: you might need some more configs on your AWS dashboard which is beyond my knowledge.

Add a comment

Related posts:

Blurring boundaries

We perceive the visual world as made of objects of different shapes, sizes and colors. Some may be smooth, shiny and reflective, whereas others are rough and uneven; some may be in shadow, while…

Data Science Capstone

Starbucks is a global coffee company selling coffee, tea, espresso drinks, bakery, and grab-and-go offerings in 75 countries. One of the company’s values is “Creating a culture of warmth and…

From China with bluff

Revised coronavirus death tolls in Wuhan were no reason to be disturbed, Chinese officials stress. There was ‘no cover-up’ they insist. One of many examples where China rectifies international…