I am following the documentation at https://developer.amazon.com/docs/fire-tv/recommendations-send-recommendations.html to create Recommended content on the Home screen.
I am able to properly create the recommendations, however they always appear in a seemingly random (undesirable) order.
The docs claim that :
//Specifies how recommendations from one app is ordered. notification.extras.putInt("com.amazon.extra.RANK", mRank);
However, this extra data does not affect the ordering. Other extra datas (DISPLAY_NAME, MATURITY_RATING, etc) DO work as described.
I have also tried using the setSortKey method on the underlying Android contentRecommendation object, but this also does nothing.
.setSortKey(String.format("%f",1.0 - (0.01*(float)mRank)))
I am using the Fire Stick 4K as the test device. Please advise on how to correctly specify the ordering of the recommended content cards.