Background: Muhammad Ali Jinnah (Urdu: mHmd `ly jnH ALA-LC: Muhammad 'Ali Jinah, born Mahomedali Jinnahbhai; 25 December 1876 - 11 September 1948) was a lawyer, politician, and the founder of Pakistan. Jinnah served as the leader of the All-India Muslim League from 1913 until Pakistan's independence on 14 August 1947, and then as Pakistan's first Governor-General until his death. He is revered in Pakistan as Quaid-i-Azam (Urdu: qy'd `Zm, "Great Leader") and Baba-i-Qaum (bby'y qwm, "Father of the Nation").
Context: Until the late 1930s, most Muslims of the British Raj expected, upon independence, to be part of a unitary state encompassing all of British India, as did the Hindus and others who advocated self-government. Despite this, other nationalist proposals were being made. In a speech given at Allahabad to a League session in 1930, Sir Muhammad Iqbal called for a state for Muslims in British India. Choudhary Rahmat Ali published a pamphlet in 1933 advocating a state "Pakistan" in the Indus Valley, with other names given to Muslim-majority areas elsewhere in India. Jinnah and Iqbal corresponded in 1936 and 1937; in subsequent years, Jinnah credited Iqbal as his mentor, and used Iqbal's imagery and rhetoric in his speeches.  Although many leaders of the Congress sought a strong central government for an Indian state, some Muslim politicians, including Jinnah, were unwilling to accept this without powerful protections for their community. Other Muslims supported the Congress, which officially advocated a secular state upon independence, though the traditionalist wing (including politicians such as Madan Mohan Malaviya and Vallabhbhai Patel) believed that an independent India should enact laws such as banning the killing of cows and making Hindi a national language. The failure of the Congress leadership to disavow Hindu communalists worried Congress-supporting Muslims. Nevertheless, the Congress enjoyed considerable Muslim support up to about 1937.  Events which separated the communities included the failed attempt to form a coalition government including the Congress and the League in the United Provinces following the 1937 election. According to historian Ian Talbot, "The provincial Congress governments made no effort to understand and respect their Muslim populations' cultural and religious sensibilities. The Muslim League's claims that it alone could safeguard Muslim interests thus received a major boost. Significantly it was only after this period of Congress rule that it [the League] took up the demand for a Pakistan state ..."  Balraj Puri in his journal article about Jinnah suggests that the Muslim League president, after the 1937 vote, turned to the idea of partition in "sheer desperation". Historian Akbar S. Ahmed suggests that Jinnah abandoned hope of reconciliation with the Congress as he "rediscover[ed] his own Islamic roots, his own sense of identity, of culture and history, which would come increasingly to the fore in the final years of his life". Jinnah also increasingly adopted Muslim dress in the late 1930s. In the wake of the 1937 balloting, Jinnah demanded that the question of power sharing be settled on an all-India basis, and that he, as president of the League, be accepted as the sole spokesman for the Muslim community.
Question: what was the background to independence?

Answer:
Until the late 1930s, most Muslims of the British Raj expected, upon independence, to be part of a unitary state encompassing all of British India,